Skip to content

Commit

Permalink
Fix comment in objectMonitor.hpp and javaThread.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
pchilano committed Oct 24, 2024
1 parent 0ebc3e9 commit 03ba6df
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/hotspot/share/runtime/javaThread.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,10 @@ 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.
// attached thread cases where this field can have a temporary value. Also,
// calls to VirtualThread.switchToCarrierThread will temporary 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;

public:
Expand Down
2 changes: 1 addition & 1 deletion src/hotspot/share/runtime/objectMonitor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ class ObjectMonitor : public CHeapObj<mtObjectMonitor> {
}

// Returns true if BasicLock* stored in _stack_locker
// points to current's stack, false othwerwise.
// points to current's stack, false otherwise.
bool has_stack_locker(JavaThread* current);
// Get and set _stack_locker.
BasicLock* stack_locker() const;
Expand Down

0 comments on commit 03ba6df

Please sign in to comment.