@@ -929,7 +929,7 @@ class JvmtiClassFileLoadHookPoster : public StackObj {
929
929
_cached_class_file_ptr = cache_ptr;
930
930
_has_been_modified = false ;
931
931
932
- assert (!_thread->is_in_any_VTMS_transition (), " CFLH events are not allowed in any VTMS transition" );
932
+ assert (!_thread->is_in_VTMS_transition (), " CFLH events are not allowed in VTMS transition" );
933
933
934
934
_state = JvmtiExport::get_jvmti_thread_state (_thread);
935
935
if (_state != nullptr ) {
@@ -1091,8 +1091,8 @@ bool JvmtiExport::post_class_file_load_hook(Symbol* h_name,
1091
1091
return false ;
1092
1092
}
1093
1093
1094
- if (JavaThread::current ()->is_in_any_VTMS_transition ()) {
1095
- return false ; // no events should be posted if thread is in any VTMS transition
1094
+ if (JavaThread::current ()->is_in_VTMS_transition ()) {
1095
+ return false ; // no events should be posted if thread is in VTMS transition
1096
1096
}
1097
1097
1098
1098
JvmtiClassFileLoadHookPoster poster (h_name, class_loader,
@@ -1228,8 +1228,8 @@ void JvmtiExport::post_raw_breakpoint(JavaThread *thread, Method* method, addres
1228
1228
if (state == nullptr ) {
1229
1229
return ;
1230
1230
}
1231
- if (thread->is_in_any_VTMS_transition ()) {
1232
- return ; // no events should be posted if thread is in any VTMS transition
1231
+ if (thread->is_in_VTMS_transition ()) {
1232
+ return ; // no events should be posted if thread is in VTMS transition
1233
1233
}
1234
1234
1235
1235
EVT_TRIG_TRACE (JVMTI_EVENT_BREAKPOINT, (" [%s] Trg Breakpoint triggered" ,
@@ -1368,8 +1368,8 @@ void JvmtiExport::post_class_load(JavaThread *thread, Klass* klass) {
1368
1368
if (state == nullptr ) {
1369
1369
return ;
1370
1370
}
1371
- if (thread->is_in_any_VTMS_transition ()) {
1372
- return ; // no events should be posted if thread is in any VTMS transition
1371
+ if (thread->is_in_VTMS_transition ()) {
1372
+ return ; // no events should be posted if thread is in VTMS transition
1373
1373
}
1374
1374
1375
1375
EVT_TRIG_TRACE (JVMTI_EVENT_CLASS_LOAD, (" [%s] Trg Class Load triggered" ,
@@ -1405,8 +1405,8 @@ void JvmtiExport::post_class_prepare(JavaThread *thread, Klass* klass) {
1405
1405
if (state == nullptr ) {
1406
1406
return ;
1407
1407
}
1408
- if (thread->is_in_any_VTMS_transition ()) {
1409
- return ; // no events should be posted if thread is in any VTMS transition
1408
+ if (thread->is_in_VTMS_transition ()) {
1409
+ return ; // no events should be posted if thread is in VTMS transition
1410
1410
}
1411
1411
1412
1412
EVT_TRIG_TRACE (JVMTI_EVENT_CLASS_PREPARE, (" [%s] Trg Class Prepare triggered" ,
@@ -1743,8 +1743,8 @@ void JvmtiExport::post_object_free(JvmtiEnv* env, GrowableArray<jlong>* objects)
1743
1743
assert (objects != nullptr , " Nothing to post" );
1744
1744
1745
1745
JavaThread *javaThread = JavaThread::current ();
1746
- if (javaThread->is_in_any_VTMS_transition ()) {
1747
- return ; // no events should be posted if thread is in any VTMS transition
1746
+ if (javaThread->is_in_VTMS_transition ()) {
1747
+ return ; // no events should be posted if thread is in VTMS transition
1748
1748
}
1749
1749
if (!env->is_enabled (JVMTI_EVENT_OBJECT_FREE)) {
1750
1750
return ; // the event type has been already disabled
@@ -1767,8 +1767,8 @@ void JvmtiExport::post_resource_exhausted(jint resource_exhausted_flags, const c
1767
1767
1768
1768
JavaThread *thread = JavaThread::current ();
1769
1769
1770
- if (thread->is_in_any_VTMS_transition ()) {
1771
- return ; // no events should be posted if thread is in any VTMS transition
1770
+ if (thread->is_in_VTMS_transition ()) {
1771
+ return ; // no events should be posted if thread is in VTMS transition
1772
1772
}
1773
1773
1774
1774
log_error (jvmti)(" Posting Resource Exhausted event: %s" ,
@@ -1810,8 +1810,8 @@ void JvmtiExport::post_method_entry(JavaThread *thread, Method* method, frame cu
1810
1810
// for any thread that actually wants method entry, interp_only_mode is set
1811
1811
return ;
1812
1812
}
1813
- if (mh->jvmti_mount_transition () || thread->is_in_any_VTMS_transition ()) {
1814
- return ; // no events should be posted if thread is in any VTMS transition
1813
+ if (mh->jvmti_mount_transition () || thread->is_in_VTMS_transition ()) {
1814
+ return ; // no events should be posted if thread is in VTMS transition
1815
1815
}
1816
1816
EVT_TRIG_TRACE (JVMTI_EVENT_METHOD_ENTRY, (" [%s] Trg Method Entry triggered %s.%s" ,
1817
1817
JvmtiTrace::safe_get_thread_name (thread),
@@ -1902,8 +1902,8 @@ void JvmtiExport::post_method_exit_inner(JavaThread* thread,
1902
1902
bool exception_exit,
1903
1903
frame current_frame,
1904
1904
jvalue& value) {
1905
- if (mh->jvmti_mount_transition () || thread->is_in_any_VTMS_transition ()) {
1906
- return ; // no events should be posted if thread is in any VTMS transition
1905
+ if (mh->jvmti_mount_transition () || thread->is_in_VTMS_transition ()) {
1906
+ return ; // no events should be posted if thread is in VTMS transition
1907
1907
}
1908
1908
1909
1909
EVT_TRIG_TRACE (JVMTI_EVENT_METHOD_EXIT, (" [%s] Trg Method Exit triggered %s.%s" ,
@@ -1978,8 +1978,8 @@ void JvmtiExport::post_single_step(JavaThread *thread, Method* method, address l
1978
1978
if (state == nullptr ) {
1979
1979
return ;
1980
1980
}
1981
- if (mh->jvmti_mount_transition () || thread->is_in_any_VTMS_transition ()) {
1982
- return ; // no events should be posted if thread is in any VTMS transition
1981
+ if (mh->jvmti_mount_transition () || thread->is_in_VTMS_transition ()) {
1982
+ return ; // no events should be posted if thread is in VTMS transition
1983
1983
}
1984
1984
1985
1985
JvmtiEnvThreadStateIterator it (state);
@@ -2020,8 +2020,8 @@ void JvmtiExport::post_exception_throw(JavaThread *thread, Method* method, addre
2020
2020
if (state == nullptr ) {
2021
2021
return ;
2022
2022
}
2023
- if (thread->is_in_any_VTMS_transition ()) {
2024
- return ; // no events should be posted if thread is in any VTMS transition
2023
+ if (thread->is_in_VTMS_transition ()) {
2024
+ return ; // no events should be posted if thread is in VTMS transition
2025
2025
}
2026
2026
2027
2027
EVT_TRIG_TRACE (JVMTI_EVENT_EXCEPTION, (" [%s] Trg Exception thrown triggered" ,
@@ -2142,8 +2142,8 @@ void JvmtiExport::notice_unwind_due_to_exception(JavaThread *thread, Method* met
2142
2142
assert (!state->is_exception_caught (), " exception must not be caught yet." );
2143
2143
state->set_exception_caught ();
2144
2144
2145
- if (mh->jvmti_mount_transition () || thread->is_in_any_VTMS_transition ()) {
2146
- return ; // no events should be posted if thread is in any VTMS transition
2145
+ if (mh->jvmti_mount_transition () || thread->is_in_VTMS_transition ()) {
2146
+ return ; // no events should be posted if thread is in VTMS transition
2147
2147
}
2148
2148
JvmtiEnvThreadStateIterator it (state);
2149
2149
for (JvmtiEnvThreadState* ets = it.first (); ets != nullptr ; ets = it.next (ets)) {
@@ -2188,8 +2188,8 @@ void JvmtiExport::post_field_access_by_jni(JavaThread *thread, oop obj,
2188
2188
// function don't make the call unless there is a Java context.
2189
2189
assert (thread->has_last_Java_frame (), " must be called with a Java context" );
2190
2190
2191
- if (thread->is_in_any_VTMS_transition ()) {
2192
- return ; // no events should be posted if thread is in any VTMS transition
2191
+ if (thread->is_in_VTMS_transition ()) {
2192
+ return ; // no events should be posted if thread is in VTMS transition
2193
2193
}
2194
2194
2195
2195
ResourceMark rm;
@@ -2224,8 +2224,8 @@ void JvmtiExport::post_field_access(JavaThread *thread, Method* method,
2224
2224
if (state == nullptr ) {
2225
2225
return ;
2226
2226
}
2227
- if (thread->is_in_any_VTMS_transition ()) {
2228
- return ; // no events should be posted if thread is in any VTMS transition
2227
+ if (thread->is_in_VTMS_transition ()) {
2228
+ return ; // no events should be posted if thread is in VTMS transition
2229
2229
}
2230
2230
2231
2231
EVT_TRIG_TRACE (JVMTI_EVENT_FIELD_ACCESS, (" [%s] Trg Field Access event triggered" ,
@@ -2274,8 +2274,8 @@ void JvmtiExport::post_field_modification_by_jni(JavaThread *thread, oop obj,
2274
2274
// function don't make the call unless there is a Java context.
2275
2275
assert (thread->has_last_Java_frame (), " must be called with Java context" );
2276
2276
2277
- if (thread->is_in_any_VTMS_transition ()) {
2278
- return ; // no events should be posted if thread is in any VTMS transition
2277
+ if (thread->is_in_VTMS_transition ()) {
2278
+ return ; // no events should be posted if thread is in VTMS transition
2279
2279
}
2280
2280
2281
2281
ResourceMark rm;
@@ -2305,8 +2305,8 @@ void JvmtiExport::post_raw_field_modification(JavaThread *thread, Method* method
2305
2305
address location, Klass* field_klass, Handle object, jfieldID field,
2306
2306
char sig_type, jvalue *value) {
2307
2307
2308
- if (thread->is_in_any_VTMS_transition ()) {
2309
- return ; // no events should be posted if thread is in any VTMS transition
2308
+ if (thread->is_in_VTMS_transition ()) {
2309
+ return ; // no events should be posted if thread is in VTMS transition
2310
2310
}
2311
2311
2312
2312
if (sig_type == JVM_SIGNATURE_INT || sig_type == JVM_SIGNATURE_BOOLEAN ||
@@ -2380,8 +2380,8 @@ void JvmtiExport::post_field_modification(JavaThread *thread, Method* method,
2380
2380
if (state == nullptr ) {
2381
2381
return ;
2382
2382
}
2383
- if (thread->is_in_any_VTMS_transition ()) {
2384
- return ; // no events should be posted if thread is in any VTMS transition
2383
+ if (thread->is_in_VTMS_transition ()) {
2384
+ return ; // no events should be posted if thread is in VTMS transition
2385
2385
}
2386
2386
2387
2387
EVT_TRIG_TRACE (JVMTI_EVENT_FIELD_MODIFICATION,
@@ -2419,8 +2419,8 @@ void JvmtiExport::post_native_method_bind(Method* method, address* function_ptr)
2419
2419
HandleMark hm (thread);
2420
2420
methodHandle mh (thread, method);
2421
2421
2422
- if (thread->is_in_any_VTMS_transition ()) {
2423
- return ; // no events should be posted if thread is in any VTMS transition
2422
+ if (thread->is_in_VTMS_transition ()) {
2423
+ return ; // no events should be posted if thread is in VTMS transition
2424
2424
}
2425
2425
EVT_TRIG_TRACE (JVMTI_EVENT_NATIVE_METHOD_BIND, (" [%s] Trg Native Method Bind event triggered" ,
2426
2426
JvmtiTrace::safe_get_thread_name (thread)));
@@ -2493,7 +2493,7 @@ void JvmtiExport::post_compiled_method_load(nmethod *nm) {
2493
2493
}
2494
2494
JavaThread* thread = JavaThread::current ();
2495
2495
2496
- assert (!thread->is_in_any_VTMS_transition (), " compiled method load events are not allowed in any VTMS transition" );
2496
+ assert (!thread->is_in_VTMS_transition (), " compiled method load events are not allowed in VTMS transition" );
2497
2497
2498
2498
EVT_TRIG_TRACE (JVMTI_EVENT_COMPILED_METHOD_LOAD,
2499
2499
(" [%s] method compile load event triggered" ,
@@ -2516,7 +2516,7 @@ void JvmtiExport::post_compiled_method_load(JvmtiEnv* env, nmethod *nm) {
2516
2516
}
2517
2517
JavaThread* thread = JavaThread::current ();
2518
2518
2519
- assert (!thread->is_in_any_VTMS_transition (), " compiled method load events are not allowed in any VTMS transition" );
2519
+ assert (!thread->is_in_VTMS_transition (), " compiled method load events are not allowed in VTMS transition" );
2520
2520
2521
2521
EVT_TRACE (JVMTI_EVENT_COMPILED_METHOD_LOAD,
2522
2522
(" [%s] method compile load event sent %s.%s " ,
@@ -2541,7 +2541,7 @@ void JvmtiExport::post_dynamic_code_generated_internal(const char *name, const v
2541
2541
2542
2542
JavaThread* thread = JavaThread::current ();
2543
2543
2544
- assert (!thread->is_in_any_VTMS_transition (), " dynamic code generated events are not allowed in any VTMS transition" );
2544
+ assert (!thread->is_in_VTMS_transition (), " dynamic code generated events are not allowed in VTMS transition" );
2545
2545
2546
2546
// In theory everyone coming thru here is in_vm but we need to be certain
2547
2547
// because a callee will do a vm->native transition
@@ -2589,7 +2589,7 @@ void JvmtiExport::post_dynamic_code_generated(JvmtiEnv* env, const char *name,
2589
2589
{
2590
2590
JavaThread* thread = JavaThread::current ();
2591
2591
2592
- assert (!thread->is_in_any_VTMS_transition (), " dynamic code generated events are not allowed in any VTMS transition" );
2592
+ assert (!thread->is_in_VTMS_transition (), " dynamic code generated events are not allowed in VTMS transition" );
2593
2593
2594
2594
EVT_TRIG_TRACE (JVMTI_EVENT_DYNAMIC_CODE_GENERATED,
2595
2595
(" [%s] dynamic code generated event triggered (by GenerateEvents)" ,
@@ -2744,8 +2744,8 @@ void JvmtiExport::post_monitor_contended_enter(JavaThread *thread, ObjectMonitor
2744
2744
if (state == nullptr ) {
2745
2745
return ;
2746
2746
}
2747
- if (thread->is_in_any_VTMS_transition ()) {
2748
- return ; // no events should be posted if thread is in any VTMS transition
2747
+ if (thread->is_in_VTMS_transition ()) {
2748
+ return ; // no events should be posted if thread is in VTMS transition
2749
2749
}
2750
2750
2751
2751
EVT_TRIG_TRACE (JVMTI_EVENT_MONITOR_CONTENDED_ENTER,
@@ -2777,8 +2777,8 @@ void JvmtiExport::post_monitor_contended_entered(JavaThread *thread, ObjectMonit
2777
2777
if (state == nullptr ) {
2778
2778
return ;
2779
2779
}
2780
- if (thread->is_in_any_VTMS_transition ()) {
2781
- return ; // no events should be posted if thread is in any VTMS transition
2780
+ if (thread->is_in_VTMS_transition ()) {
2781
+ return ; // no events should be posted if thread is in VTMS transition
2782
2782
}
2783
2783
2784
2784
EVT_TRIG_TRACE (JVMTI_EVENT_MONITOR_CONTENDED_ENTERED,
@@ -2811,8 +2811,8 @@ void JvmtiExport::post_monitor_wait(JavaThread *thread, oop object,
2811
2811
if (state == nullptr ) {
2812
2812
return ;
2813
2813
}
2814
- if (thread->is_in_any_VTMS_transition ()) {
2815
- return ; // no events should be posted if thread is in any VTMS transition
2814
+ if (thread->is_in_VTMS_transition ()) {
2815
+ return ; // no events should be posted if thread is in VTMS transition
2816
2816
}
2817
2817
2818
2818
EVT_TRIG_TRACE (JVMTI_EVENT_MONITOR_WAIT,
@@ -2845,8 +2845,8 @@ void JvmtiExport::post_monitor_waited(JavaThread *thread, ObjectMonitor *obj_mnt
2845
2845
if (state == nullptr ) {
2846
2846
return ;
2847
2847
}
2848
- if (thread->is_in_any_VTMS_transition ()) {
2849
- return ; // no events should be posted if thread is in any VTMS transition
2848
+ if (thread->is_in_VTMS_transition ()) {
2849
+ return ; // no events should be posted if thread is in VTMS transition
2850
2850
}
2851
2851
2852
2852
EVT_TRIG_TRACE (JVMTI_EVENT_MONITOR_WAITED,
@@ -2874,8 +2874,8 @@ void JvmtiExport::post_vm_object_alloc(JavaThread *thread, oop object) {
2874
2874
if (object == nullptr ) {
2875
2875
return ;
2876
2876
}
2877
- if (thread->is_in_any_VTMS_transition ()) {
2878
- return ; // no events should be posted if thread is in any VTMS transition
2877
+ if (thread->is_in_VTMS_transition ()) {
2878
+ return ; // no events should be posted if thread is in VTMS transition
2879
2879
}
2880
2880
HandleMark hm (thread);
2881
2881
Handle h (thread, object);
@@ -2911,8 +2911,8 @@ void JvmtiExport::post_sampled_object_alloc(JavaThread *thread, oop object) {
2911
2911
if (object == nullptr ) {
2912
2912
return ;
2913
2913
}
2914
- if (thread->is_in_any_VTMS_transition ()) {
2915
- return ; // no events should be posted if thread is in any VTMS transition
2914
+ if (thread->is_in_VTMS_transition ()) {
2915
+ return ; // no events should be posted if thread is in VTMS transition
2916
2916
}
2917
2917
2918
2918
EVT_TRIG_TRACE (JVMTI_EVENT_SAMPLED_OBJECT_ALLOC,
0 commit comments