Skip to content

Commit

Permalink
Merge pull request #32 from thallium/openj9
Browse files Browse the repository at this point in the history
Set scoped value bindings for newly-created thread
  • Loading branch information
tajila committed Aug 18, 2023
2 parents 270349d + 6f920d8 commit c0d4f33
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/java.base/share/classes/java/lang/Thread.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

/*
* ===========================================================================
* (c) Copyright IBM Corp. 2021, 2022 All Rights Reserved
* (c) Copyright IBM Corp. 2021, 2023 All Rights Reserved
* ===========================================================================
*/

Expand Down Expand Up @@ -3189,6 +3189,9 @@ private Thread(String vmName, Object vmThreadGroup, int vmPriority, boolean vmIs
setNameImpl(eetop, "main");
System.completeInitialization();
}

// special value to indicate this is a newly-created Thread
this.scopedValueBindings = NEW_THREAD_BINDINGS;
}

private boolean isDead() {
Expand Down

0 comments on commit c0d4f33

Please sign in to comment.