mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 19:14:38 +02:00
6833129: specjvm98 fails with NullPointerException in the compiler with -XX:DeoptimizeALot
Developed a reexecute logic for the interpreter to reexecute the bytecode when deopt happens Reviewed-by: kvn, never, jrose, twisti
This commit is contained in:
parent
f2ea22a547
commit
ae00753bf7
29 changed files with 465 additions and 241 deletions
|
@ -276,6 +276,15 @@ int compiledVFrame::raw_bci() const {
|
|||
return scope()->bci();
|
||||
}
|
||||
|
||||
bool compiledVFrame::should_reexecute() const {
|
||||
if (scope() == NULL) {
|
||||
// native nmethods have no scope the method/bci is implied
|
||||
nmethod* nm = code();
|
||||
assert(nm->is_native_method(), "must be native");
|
||||
return false;
|
||||
}
|
||||
return scope()->should_reexecute();
|
||||
}
|
||||
|
||||
vframe* compiledVFrame::sender() const {
|
||||
const frame f = fr();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue