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:
Roland Westrelin 2014-07-10 15:12:48 +02:00
parent f312adb9c5
commit c0deb9e08a
8 changed files with 236 additions and 4 deletions

View file

@ -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();
}
};