Skip to content

Commit

Permalink
8321219: runtime/jni/FastGetField: assert(is_interpreted_frame()) fai…
Browse files Browse the repository at this point in the history
…led: interpreted frame expected

Reviewed-by: dcubed
  • Loading branch information
Serguei Spitsyn committed Dec 5, 2023
1 parent 430564c commit 905137d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/hotspot/share/prims/jvmtiThreadState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,11 @@ JvmtiVTMSTransitionDisabler::VTMS_vthread_start(jobject vthread) {
// If interp_only_mode has been enabled then we must eagerly create JvmtiThreadState
// objects for globally enabled virtual thread filtered events. Otherwise,
// it is an important optimization to create JvmtiThreadState objects lazily.
if (JvmtiThreadState::seen_interp_only_mode()) {
// This optimization is disabled when watchpoint capabilities are present. It is to
// work around a bug with virtual thread frames which can be not deoptimized in time.
if (JvmtiThreadState::seen_interp_only_mode() ||
JvmtiExport::should_post_field_access() ||
JvmtiExport::should_post_field_modification()){
JvmtiEventController::thread_started(thread);
}
if (JvmtiExport::should_post_vthread_start()) {
Expand Down

1 comment on commit 905137d

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.