Skip to content

Commit

Permalink
8310340: assert(_thread->is_interp_only_mode() || stub_caller) failed…
Browse files Browse the repository at this point in the history
…: expected a stub-caller

Reviewed-by: sspitsyn
Backport-of: ea49537
  • Loading branch information
pchilano committed Jan 10, 2025
1 parent c61fbfd commit f0a89c5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/hotspot/share/prims/jvmtiEventController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,7 @@ JvmtiEventControllerPrivate::recompute_thread_enabled(JvmtiThreadState *state) {
}
// compute interp_only mode
bool should_be_interp = (any_env_enabled & INTERP_EVENT_BITS) != 0 || has_frame_pops;
bool is_now_interp = state->is_interp_only_mode();
bool is_now_interp = state->is_interp_only_mode() || state->is_pending_interp_only_mode();

if (should_be_interp != is_now_interp) {
if (should_be_interp) {
Expand Down
1 change: 1 addition & 0 deletions src/hotspot/share/runtime/continuationFreezeThaw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2603,6 +2603,7 @@ void ThawBase::recurse_thaw_compiled_frame(const frame& hf, frame& caller, int n
|| (stub_caller && f.cb()->as_nmethod()->is_marked_for_deoptimization())) {
// The caller of the safepoint stub when the continuation is preempted is not at a call instruction, and so
// cannot rely on nmethod patching for deopt.
assert(_thread->is_interp_only_mode() || stub_caller, "expected a stub-caller");

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

0 comments on commit f0a89c5

Please sign in to comment.