You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix handling of KillException thrown on thread enter
* Thread enter does the context enter and then a poll(), before running
the Runnable given to createThread(). That poll() can then throw a
KillException if Thread#kill was used on that Thread. So we cannot
catch it in threadMain() and we must use the uncaughtExceptionHandler().
* Also we need to set the thread value to non-null before disposeThread()
runs and `thread.finishedLatch.countDown();` (used by Thread#{join,value}).
We choose to just set it to nil initially for simplicity, and so the
value field only needs to be set for the non-exception path.
0 commit comments