Skip to content
This repository has been archived by the owner on Aug 27, 2022. It is now read-only.
/ lanai Public archive

Commit

Permalink
8246442: nmethod::can_convert_to_zombie() asserts when not called by …
Browse files Browse the repository at this point in the history
…the sweeper

Reviewed-by: dholmes, dcubed, kvn
  • Loading branch information
fisk committed Jun 8, 2020
1 parent 9149f10 commit 086c5f1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/hotspot/share/code/nmethod.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1116,7 +1116,9 @@ bool nmethod::can_convert_to_zombie() {
// not_entrant. However, with concurrent code cache unloading, the state
// might have moved on to unloaded if it is_unloading(), due to racing
// concurrent GC threads.
assert(is_not_entrant() || is_unloading(), "must be a non-entrant method");
assert(is_not_entrant() || is_unloading() ||
!Thread::current()->is_Code_cache_sweeper_thread(),
"must be a non-entrant method if called from sweeper");

// Since the nmethod sweeper only does partial sweep the sweeper's traversal
// count can be greater than the stack traversal count before it hits the
Expand Down

0 comments on commit 086c5f1

Please sign in to comment.