mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-14 20:35:09 +00:00
8220341: Class redefinition fails with assert(!is_unloaded()) failed: unloaded method on the stack
Skip unloaded methods in compile queue during marking. Reviewed-by: kvn, neliasso, eosterlund, coleenp
This commit is contained in:
parent
1dc7271eca
commit
474437061e
@ -182,8 +182,10 @@ void CompileTask::set_code(nmethod* nm) {
|
||||
}
|
||||
|
||||
void CompileTask::mark_on_stack() {
|
||||
if (is_unloaded()) {
|
||||
return;
|
||||
}
|
||||
// Mark these methods as something redefine classes cannot remove.
|
||||
assert(!is_unloaded(), "unloaded method on the stack");
|
||||
_method->set_on_stack(true);
|
||||
if (_hot_method != NULL) {
|
||||
_hot_method->set_on_stack(true);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user