Skip to content

Commit 99749c5

Browse files
Yudi ZhengDoug Simon
authored andcommitted
8309562: [JVMCI] Export symbols used by VirtualThread notifyJvmti intrinsics to JVMCI compilers.
Reviewed-by: dnsimon, kvn
1 parent 92beb85 commit 99749c5

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/hotspot/share/jvmci/vmStructs_jvmci.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
#include "jvmci/vmStructs_jvmci.hpp"
3333
#include "oops/klassVtable.hpp"
3434
#include "oops/objArrayKlass.hpp"
35+
#include "prims/jvmtiThreadState.hpp"
3536
#include "runtime/deoptimization.hpp"
3637
#include "runtime/flags/jvmFlag.hpp"
3738
#include "runtime/osThread.hpp"
@@ -215,6 +216,10 @@
215216
nonstatic_field(JavaThread, _poll_data, SafepointMechanism::ThreadData) \
216217
nonstatic_field(JavaThread, _stack_overflow_state._reserved_stack_activation, address) \
217218
nonstatic_field(JavaThread, _held_monitor_count, int64_t) \
219+
JVMTI_ONLY(nonstatic_field(JavaThread, _is_in_VTMS_transition, bool)) \
220+
JVMTI_ONLY(nonstatic_field(JavaThread, _is_in_tmp_VTMS_transition, bool)) \
221+
\
222+
JVMTI_ONLY(static_field(JvmtiVTMSTransitionDisabler, _VTMS_notify_jvmti_events, bool)) \
218223
\
219224
static_field(java_lang_Class, _klass_offset, int) \
220225
static_field(java_lang_Class, _array_klass_offset, int) \
@@ -366,6 +371,7 @@
366371
JFR_ONLY(nonstatic_field(Thread, _jfr_thread_local, JfrThreadLocal)) \
367372
\
368373
static_field(java_lang_Thread, _tid_offset, int) \
374+
static_field(java_lang_Thread, _jvmti_is_in_VTMS_transition_offset, int) \
369375
JFR_ONLY(static_field(java_lang_Thread, _jfr_epoch_offset, int)) \
370376
\
371377
JFR_ONLY(nonstatic_field(JfrThreadLocal, _vthread_id, traceid)) \
@@ -756,6 +762,10 @@
756762
declare_function(SharedRuntime::enable_stack_reserved_zone) \
757763
declare_function(SharedRuntime::frem) \
758764
declare_function(SharedRuntime::drem) \
765+
JVMTI_ONLY(declare_function(SharedRuntime::notify_jvmti_vthread_start)) \
766+
JVMTI_ONLY(declare_function(SharedRuntime::notify_jvmti_vthread_end)) \
767+
JVMTI_ONLY(declare_function(SharedRuntime::notify_jvmti_vthread_mount)) \
768+
JVMTI_ONLY(declare_function(SharedRuntime::notify_jvmti_vthread_unmount)) \
759769
\
760770
declare_function(os::dll_load) \
761771
declare_function(os::dll_lookup) \

0 commit comments

Comments
 (0)