Skip to content
This repository has been archived by the owner on Aug 16, 2023. It is now read-only.

Commit

Permalink
[GR-27902] Rare VM crash: "cannot lock a zombie method".
Browse files Browse the repository at this point in the history
PullRequest: graal-jvmci-8/392
  • Loading branch information
tkrodriguez committed Apr 17, 2021
2 parents a438628 + aedcdc5 commit fa952e5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/share/vm/runtime/vm_operations.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ void VM_DeoptimizeNMethod::invalidate(nmethod* nm) {
// Invalidating the HotSpotNmethod means we want the nmethod
// to be deoptimized.
nm->mark_for_deoptimization();
nm->make_not_entrant();
VM_DeoptimizeNMethod op(nm);
VMThread::execute(&op);
}
Expand All @@ -146,8 +147,6 @@ void VM_DeoptimizeNMethod::doit() {

// Deoptimize all activations depending on marked nmethods
Deoptimization::deoptimize_dependents();

_nm->make_not_entrant();
}

#ifndef PRODUCT
Expand Down

0 comments on commit fa952e5

Please sign in to comment.