mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8205540: test/hotspot/jtreg/vmTestbase/nsk/jdb/trace/trace001/trace001.java fails with Debuggee did not exit after 15 <cont> commands
Screen usage/initialization of TerminatingThreadLocal with a non-null check on Thread.threadLocals field Reviewed-by: dholmes, alanb
This commit is contained in:
parent
e9fc42d791
commit
a9912bb300
1 changed files with 1 additions and 1 deletions
|
@ -840,7 +840,7 @@ class Thread implements Runnable {
|
|||
* a chance to clean up before it actually exits.
|
||||
*/
|
||||
private void exit() {
|
||||
if (TerminatingThreadLocal.REGISTRY.isPresent()) {
|
||||
if (threadLocals != null && TerminatingThreadLocal.REGISTRY.isPresent()) {
|
||||
TerminatingThreadLocal.threadTerminated();
|
||||
}
|
||||
if (group != null) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue