Skip to content

Commit

Permalink
Fixes to make it build
Browse files Browse the repository at this point in the history
  • Loading branch information
GoeLin committed Dec 29, 2024
1 parent 5303b59 commit 375bb0c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions src/hotspot/share/runtime/monitorChunk.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@ class MonitorChunk: public CHeapObj<mtSynchronizer> {
MonitorChunk(int number_on_monitors);
~MonitorChunk();

// Tells whether the monitor chunk is linked into the JavaThread
bool is_linked() const { return next() != NULL; }

// Returns the number of monitors
int number_of_monitors() const { return _number_of_monitors; }

Expand Down
2 changes: 1 addition & 1 deletion src/hotspot/share/runtime/synchronizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -962,7 +962,7 @@ intptr_t ObjectSynchronizer::FastHashCode(Thread* current, oop obj) {
// Fall thru so we only have one place that installs the hash in
// the ObjectMonitor.
} else if (current->is_Java_thread()
&& JavaThread::cast(current)->is_lock_owned((address)mark.locker())) {
&& current->as_Java_thread()->is_lock_owned((address)mark.locker())) {
// This is a stack lock owned by the calling thread so fetch the
// displaced markWord from the BasicLock on the stack.
temp = mark.displaced_mark_helper();
Expand Down

0 comments on commit 375bb0c

Please sign in to comment.