mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8246442: nmethod::can_convert_to_zombie() asserts when not called by the sweeper
Reviewed-by: dholmes, dcubed, kvn
This commit is contained in:
parent
9149f10fa4
commit
086c5f1750
1 changed files with 3 additions and 1 deletions
|
@ -1116,7 +1116,9 @@ bool nmethod::can_convert_to_zombie() {
|
||||||
// not_entrant. However, with concurrent code cache unloading, the state
|
// not_entrant. However, with concurrent code cache unloading, the state
|
||||||
// might have moved on to unloaded if it is_unloading(), due to racing
|
// might have moved on to unloaded if it is_unloading(), due to racing
|
||||||
// concurrent GC threads.
|
// 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
|
// 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
|
// count can be greater than the stack traversal count before it hits the
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue