Skip to content
Permalink
Browse files
8253833: mutexLocker assert_locked_or_safepoint should not access VMT…
…hread state from non-VM-thread

Reviewed-by: shade, coleenp, dcubed, dholmes
  • Loading branch information
robehn committed Oct 12, 2020
1 parent 77c7762 commit 45b09a3f258be1f23c5f637bdd70ed77418590ad
Showing with 0 additions and 3 deletions.
  1. +0 −3 src/hotspot/share/runtime/mutexLocker.cpp
@@ -169,9 +169,6 @@ void assert_locked_or_safepoint(const Mutex* lock) {
if (lock->owned_by_self()) return;
if (SafepointSynchronize::is_at_safepoint()) return;
if (!Universe::is_fully_initialized()) return;
// see if invoker of VM operation owns it
VM_Operation* op = VMThread::vm_operation();
if (op != NULL && op->calling_thread() == lock->owner()) return;
fatal("must own lock %s", lock->name());
}

1 comment on commit 45b09a3

@bridgekeeper

This comment has been minimized.

Copy link

@bridgekeeper bridgekeeper bot commented on 45b09a3 Oct 12, 2020

Please sign in to comment.