JDK 17 | JDK 21 |
---|---|
17.0.9-oracleFixed | 21 b23Fixed |
Blocks :
|
During the lengthy discussions and analysis of the following fix: JDK-8305670 Performance regression in LockSupport.unpark with lots of idle threads we concluded that a JavaThread* should be stored in the java.lang.Thread object after the JavaThread* has been added to the main ThreadsList. Publishing that JavaThread* early can lead to situations where the JavaThread* can be accessed/used before it is protected by a ThreadsListHandle which is not safe.
|