mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8040237: nsk/jvmti/RetransformClasses/retransform001 crashed the VM on all platforms when run with with -server -Xcomp
Class redefinition may cause speculative trap clean up code to dereference dead method Reviewed-by: kvn, coleenp
This commit is contained in:
parent
f312adb9c5
commit
c0deb9e08a
8 changed files with 236 additions and 4 deletions
|
@ -1556,7 +1556,7 @@ class CleanExtraDataMethodClosure : public CleanExtraDataClosure {
|
|||
public:
|
||||
CleanExtraDataMethodClosure() {}
|
||||
bool is_live(Method* m) {
|
||||
return m->on_stack();
|
||||
return !m->is_old() || m->on_stack();
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue