Skip to content

Commit ea49537

Browse files
committed
8310340: assert(_thread->is_interp_only_mode() || stub_caller) failed: expected a stub-caller
Reviewed-by: dholmes, amenkov, sspitsyn
1 parent 2e00816 commit ea49537

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/hotspot/share/prims/jvmtiEventController.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ JvmtiEventControllerPrivate::recompute_thread_enabled(JvmtiThreadState *state) {
598598
}
599599
// compute interp_only mode
600600
bool should_be_interp = (any_env_enabled & INTERP_EVENT_BITS) != 0 || has_frame_pops;
601-
bool is_now_interp = state->is_interp_only_mode();
601+
bool is_now_interp = state->is_interp_only_mode() || state->is_pending_interp_only_mode();
602602

603603
if (should_be_interp != is_now_interp) {
604604
if (should_be_interp) {

src/hotspot/share/runtime/continuationFreezeThaw.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -2603,6 +2603,7 @@ void ThawBase::recurse_thaw_compiled_frame(const frame& hf, frame& caller, int n
26032603
|| (stub_caller && f.cb()->as_nmethod()->is_marked_for_deoptimization())) {
26042604
// The caller of the safepoint stub when the continuation is preempted is not at a call instruction, and so
26052605
// cannot rely on nmethod patching for deopt.
2606+
assert(_thread->is_interp_only_mode() || stub_caller, "expected a stub-caller");
26062607

26072608
log_develop_trace(continuations)("Deoptimizing thawed frame");
26082609
DEBUG_ONLY(ContinuationHelper::Frame::patch_pc(f, nullptr));

0 commit comments

Comments
 (0)