(Thread t)
| 99 | private native long doStart(); |
| 100 | |
| 101 | private static void run(Thread t) throws Throwable { |
| 102 | try { |
| 103 | t.run(); |
| 104 | } catch (Throwable e) { |
| 105 | UncaughtExceptionHandler eh = t.exceptionHandler; |
| 106 | UncaughtExceptionHandler deh = defaultExceptionHandler; |
| 107 | if (eh != null) { |
| 108 | eh.uncaughtException(t, e); |
| 109 | } else if (deh != null) { |
| 110 | deh.uncaughtException(t, e); |
| 111 | } else { |
| 112 | throw e; |
| 113 | } |
| 114 | } finally { |
| 115 | synchronized (t) { |
| 116 | t.state = (byte) State.TERMINATED.ordinal(); |
| 117 | t.notifyAll(); |
| 118 | } |
| 119 | } |
| 120 | } |
| 121 | |
| 122 | public void run() { |
| 123 | if (task != null) { |
nothing calls this directly
no test coverage detected