Skip to content

Commit 375bb0c

Browse files
committed
Fixes to make it build
1 parent 5303b59 commit 375bb0c

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/hotspot/share/runtime/monitorChunk.hpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,6 @@ class MonitorChunk: public CHeapObj<mtSynchronizer> {
4040
MonitorChunk(int number_on_monitors);
4141
~MonitorChunk();
4242

43-
// Tells whether the monitor chunk is linked into the JavaThread
44-
bool is_linked() const { return next() != NULL; }
45-
4643
// Returns the number of monitors
4744
int number_of_monitors() const { return _number_of_monitors; }
4845

src/hotspot/share/runtime/synchronizer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -962,7 +962,7 @@ intptr_t ObjectSynchronizer::FastHashCode(Thread* current, oop obj) {
962962
// Fall thru so we only have one place that installs the hash in
963963
// the ObjectMonitor.
964964
} else if (current->is_Java_thread()
965-
&& JavaThread::cast(current)->is_lock_owned((address)mark.locker())) {
965+
&& current->as_Java_thread()->is_lock_owned((address)mark.locker())) {
966966
// This is a stack lock owned by the calling thread so fetch the
967967
// displaced markWord from the BasicLock on the stack.
968968
temp = mark.displaced_mark_helper();

0 commit comments

Comments
 (0)