893 |
|
* (to the thread's UncaughtExceptionHandler). Any thrown |
894 |
|
* exception also conservatively causes thread to die. |
895 |
|
* |
896 |
< |
* 6. After run completes, we call afterExecute, which |
896 |
> |
* 6. After run completes, we call afterExecute, which |
897 |
|
* may also throw an exception, which will also cause |
898 |
|
* thread to die. According to JLS Sec 14.20, this exception |
899 |
|
* is the one that will be in effect even if task.run throws. |
1027 |
|
/** |
1028 |
|
* Removes an exiting worker thread from worker set, and |
1029 |
|
* gathers its statistics. Additionally, this may: |
1030 |
< |
* 1. Cause termination if this is the last exiting thread |
1030 |
> |
* 1. Cause termination if this is the last exiting thread |
1031 |
|
* during shutdown, or |
1032 |
|
* 2. Generate a replacement thread if there are any queued tasks |
1033 |
|
* and the pool is not shutting down. |