We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 32f67a3 commit cc34135Copy full SHA for cc34135
src/hotspot/share/gc/z/zBarrierSet.cpp
@@ -115,7 +115,9 @@ static void deoptimize_allocation(JavaThread* thread) {
115
assert(caller_frame.is_compiled_frame(), "must be compiled");
116
117
const nmethod* const nm = caller_frame.cb()->as_nmethod();
118
- if (nm->is_compiled_by_c2() && !caller_frame.is_deoptimized_frame()) {
+ if ((nm->is_compiled_by_c2() || nm->is_compiled_by_jvmci()) && !caller_frame.is_deoptimized_frame()) {
119
+ // The JIT might have elided barriers on this object so deoptimize the frame and let the
120
+ // intepreter deal with it.
121
Deoptimization::deoptimize_frame(thread, caller_frame.id());
122
}
123
0 commit comments