From 375bb0cdd920bb57a91d2d40780ab90dd655ec31 Mon Sep 17 00:00:00 2001 From: Goetz Lindenmaier Date: Sun, 29 Dec 2024 18:58:16 +0100 Subject: [PATCH] Fixes to make it build --- src/hotspot/share/runtime/monitorChunk.hpp | 3 --- src/hotspot/share/runtime/synchronizer.cpp | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/hotspot/share/runtime/monitorChunk.hpp b/src/hotspot/share/runtime/monitorChunk.hpp index d4e5d33c187..ce459fd838a 100644 --- a/src/hotspot/share/runtime/monitorChunk.hpp +++ b/src/hotspot/share/runtime/monitorChunk.hpp @@ -40,9 +40,6 @@ class MonitorChunk: public CHeapObj { 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; } diff --git a/src/hotspot/share/runtime/synchronizer.cpp b/src/hotspot/share/runtime/synchronizer.cpp index 850ca2bf898..8675850a584 100644 --- a/src/hotspot/share/runtime/synchronizer.cpp +++ b/src/hotspot/share/runtime/synchronizer.cpp @@ -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();