MCPcopy Create free account
hub / github.com/ReadyTalk/avian / run

Method run

classpath/java/lang/Thread.java:101–120  ·  view source on GitHub ↗
(Thread t)

Source from the content-addressed store, hash-verified

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) {

Callers

nothing calls this directly

Calls 4

uncaughtExceptionMethod · 0.95
ordinalMethod · 0.80
runMethod · 0.65
notifyAllMethod · 0.45

Tested by

no test coverage detected