Skip to content

Commit

Permalink
Fix comments in javaThread.hpp and Thread.java
Browse files Browse the repository at this point in the history
  • Loading branch information
pchilano committed Oct 24, 2024
1 parent d40d382 commit 34362b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/hotspot/share/runtime/javaThread.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ class JavaThread: public Thread {
// ID used as owner for inflated monitors. Same as the j.l.Thread.tid of the
// current _vthread object, except during creation of the primordial and JNI
// attached thread cases where this field can have a temporary value. Also,
// calls to VirtualThread.switchToCarrierThread will temporary change _vthread
// calls to VirtualThread.switchToCarrierThread will temporarily change _vthread
// to refer to the carrier while preserving the j.l.Thread.tid of the virtual
// thread in this field.
int64_t _lock_id;
Expand Down
2 changes: 1 addition & 1 deletion src/java.base/share/classes/java/lang/Thread.java
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ public static void onSpinWait() {}
* Helper class to generate thread identifiers. The identifiers start at
* {@link Thread#PRIMORDIAL_TID} +1 as this class cannot be used during
* early startup to generate the identifier for the primordial thread. The
* counter is off-heap and shared with the VM to allow it assign thread
* counter is off-heap and shared with the VM to allow it to assign thread
* identifiers to non-Java threads.
* See Thread initialization.
*/
Expand Down

0 comments on commit 34362b9

Please sign in to comment.