8061817: Whitebox.deoptimizeMethod() does not deoptimize all OSR versions of method

Fixed Whitebox.deoptimizeMethod() to deoptimize all OSR versions of the method.

Reviewed-by: kvn, iignatyev
This commit is contained in:
Tobias Hartmann 2014-10-30 13:03:30 +01:00
parent 8aa05f7690
commit fe1762fbd6
5 changed files with 119 additions and 12 deletions

View file

@ -813,6 +813,10 @@ class Method : public Metadata {
return method_holder()->lookup_osr_nmethod(this, InvocationEntryBci, level, match_level) != NULL;
}
int mark_osr_nmethods() {
return method_holder()->mark_osr_nmethods(this);
}
nmethod* lookup_osr_nmethod_for(int bci, int level, bool match_level) {
return method_holder()->lookup_osr_nmethod(this, bci, level, match_level);
}