< prev index next >
src/java.base/share/classes/java/lang/Thread.java
Print this page
rev 50167 : 8202788: Explicitly reclaim cached thread-local direct buffers at thread exit
Reviewed-by:
*** 836,845 ****
--- 836,846 ----
/**
* This method is called by the system to give a Thread
* a chance to clean up before it actually exits.
*/
private void exit() {
+ ThreadLocal.callThreadTerminated(threadLocals);
if (group != null) {
group.threadTerminated(this);
group = null;
}
/* Aggressively null out all reference fields: see bug 4006245 */
< prev index next >