Skip to content
Browse files
8246442: nmethod::can_convert_to_zombie() asserts when not called by …
…the sweeper

Reviewed-by: dholmes, dcubed, kvn
  • Loading branch information
fisk committed Jun 8, 2020
1 parent 9149f10 commit 086c5f1750ad02d94c27f8b0e33df324abbe8ab1
Showing 1 changed file with 3 additions and 1 deletion.
@@ -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() ||
"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

0 comments on commit 086c5f1

Please sign in to comment.