Skip to content

Commit 45b09a3

Browse files
committed
8253833: mutexLocker assert_locked_or_safepoint should not access VMThread state from non-VM-thread
Reviewed-by: shade, coleenp, dcubed, dholmes
1 parent 77c7762 commit 45b09a3

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/hotspot/share/runtime/mutexLocker.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,6 @@ void assert_locked_or_safepoint(const Mutex* lock) {
169169
if (lock->owned_by_self()) return;
170170
if (SafepointSynchronize::is_at_safepoint()) return;
171171
if (!Universe::is_fully_initialized()) return;
172-
// see if invoker of VM operation owns it
173-
VM_Operation* op = VMThread::vm_operation();
174-
if (op != NULL && op->calling_thread() == lock->owner()) return;
175172
fatal("must own lock %s", lock->name());
176173
}
177174

0 commit comments

Comments
 (0)