Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
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 with 3 additions and 1 deletion.
  1. +3 −1 src/hotspot/share/code/nmethod.cpp
@@ -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

0 comments on commit 086c5f1

Please sign in to comment.