@@ -149,7 +149,7 @@ jvmtiError
149
149
JvmtiEnv::SetThreadLocalStorage (jthread thread, const void * data) {
150
150
JavaThread* current = JavaThread::current ();
151
151
JvmtiThreadState* state = nullptr ;
152
- JvmtiVTMSTransitionDisabler disabler;
152
+ JvmtiVTMSTransitionDisabler disabler (thread) ;
153
153
ThreadsListHandle tlh (current);
154
154
155
155
JavaThread* java_thread = nullptr ;
@@ -202,7 +202,7 @@ JvmtiEnv::GetThreadLocalStorage(jthread thread, void** data_ptr) {
202
202
VM_ENTRY_BASE (jvmtiError, JvmtiEnv::GetThreadLocalStorage , current_thread)
203
203
debug_only (VMNativeEntryWrapper __vew;)
204
204
205
- JvmtiVTMSTransitionDisabler disabler;
205
+ JvmtiVTMSTransitionDisabler disabler (thread) ;
206
206
ThreadsListHandle tlh (current_thread);
207
207
208
208
JavaThread* java_thread = nullptr ;
@@ -575,7 +575,7 @@ JvmtiEnv::SetEventNotificationMode(jvmtiEventMode mode, jvmtiEvent event_type, j
575
575
if (event_type == JVMTI_EVENT_CLASS_FILE_LOAD_HOOK && enabled) {
576
576
record_class_file_load_hook_enabled ();
577
577
}
578
- JvmtiVTMSTransitionDisabler disabler;
578
+ JvmtiVTMSTransitionDisabler disabler (event_thread) ;
579
579
580
580
if (event_thread == nullptr ) {
581
581
// Can be called at Agent_OnLoad() time with event_thread == nullptr
@@ -856,7 +856,7 @@ JvmtiEnv::GetJLocationFormat(jvmtiJlocationFormat* format_ptr) {
856
856
jvmtiError
857
857
JvmtiEnv::GetThreadState (jthread thread, jint* thread_state_ptr) {
858
858
JavaThread* current_thread = JavaThread::current ();
859
- JvmtiVTMSTransitionDisabler disabler;
859
+ JvmtiVTMSTransitionDisabler disabler (thread) ;
860
860
ThreadsListHandle tlh (current_thread);
861
861
862
862
JavaThread* java_thread = nullptr ;
@@ -1181,7 +1181,7 @@ jvmtiError
1181
1181
JvmtiEnv::StopThread (jthread thread, jobject exception ) {
1182
1182
JavaThread* current_thread = JavaThread::current ();
1183
1183
1184
- JvmtiVTMSTransitionDisabler disabler;
1184
+ JvmtiVTMSTransitionDisabler disabler (thread) ;
1185
1185
ThreadsListHandle tlh (current_thread);
1186
1186
JavaThread* java_thread = nullptr ;
1187
1187
oop thread_oop = nullptr ;
@@ -1213,7 +1213,7 @@ JvmtiEnv::InterruptThread(jthread thread) {
1213
1213
JavaThread* current_thread = JavaThread::current ();
1214
1214
HandleMark hm (current_thread);
1215
1215
1216
- JvmtiVTMSTransitionDisabler disabler;
1216
+ JvmtiVTMSTransitionDisabler disabler (thread) ;
1217
1217
ThreadsListHandle tlh (current_thread);
1218
1218
1219
1219
JavaThread* java_thread = nullptr ;
@@ -1258,7 +1258,7 @@ JvmtiEnv::GetThreadInfo(jthread thread, jvmtiThreadInfo* info_ptr) {
1258
1258
JavaThread* java_thread = nullptr ;
1259
1259
oop thread_oop = nullptr ;
1260
1260
1261
- JvmtiVTMSTransitionDisabler disabler;
1261
+ JvmtiVTMSTransitionDisabler disabler (thread) ;
1262
1262
ThreadsListHandle tlh (current_thread);
1263
1263
1264
1264
// if thread is null the current thread is used
@@ -1358,7 +1358,7 @@ JvmtiEnv::GetOwnedMonitorInfo(jthread thread, jint* owned_monitor_count_ptr, job
1358
1358
GrowableArray<jvmtiMonitorStackDepthInfo*> *owned_monitors_list =
1359
1359
new (mtServiceability) GrowableArray<jvmtiMonitorStackDepthInfo*>(1 , mtServiceability);
1360
1360
1361
- JvmtiVTMSTransitionDisabler disabler;
1361
+ JvmtiVTMSTransitionDisabler disabler (thread) ;
1362
1362
ThreadsListHandle tlh (calling_thread);
1363
1363
1364
1364
JavaThread* java_thread = nullptr ;
@@ -1431,7 +1431,7 @@ JvmtiEnv::GetOwnedMonitorStackDepthInfo(jthread thread, jint* monitor_info_count
1431
1431
GrowableArray<jvmtiMonitorStackDepthInfo*> *owned_monitors_list =
1432
1432
new (mtServiceability) GrowableArray<jvmtiMonitorStackDepthInfo*>(1 , mtServiceability);
1433
1433
1434
- JvmtiVTMSTransitionDisabler disabler;
1434
+ JvmtiVTMSTransitionDisabler disabler (thread) ;
1435
1435
ThreadsListHandle tlh (calling_thread);
1436
1436
1437
1437
JavaThread* java_thread = nullptr ;
@@ -1501,7 +1501,7 @@ JvmtiEnv::GetCurrentContendedMonitor(jthread thread, jobject* monitor_ptr) {
1501
1501
JavaThread* calling_thread = JavaThread::current ();
1502
1502
HandleMark hm (calling_thread);
1503
1503
1504
- JvmtiVTMSTransitionDisabler disabler;
1504
+ JvmtiVTMSTransitionDisabler disabler (thread) ;
1505
1505
ThreadsListHandle tlh (calling_thread);
1506
1506
1507
1507
JavaThread* java_thread = nullptr ;
@@ -1715,7 +1715,7 @@ JvmtiEnv::GetStackTrace(jthread thread, jint start_depth, jint max_frame_count,
1715
1715
JavaThread* current_thread = JavaThread::current ();
1716
1716
HandleMark hm (current_thread);
1717
1717
1718
- JvmtiVTMSTransitionDisabler disabler;
1718
+ JvmtiVTMSTransitionDisabler disabler (thread) ;
1719
1719
ThreadsListHandle tlh (current_thread);
1720
1720
1721
1721
JavaThread* java_thread = nullptr ;
@@ -1833,7 +1833,7 @@ JvmtiEnv::GetFrameCount(jthread thread, jint* count_ptr) {
1833
1833
JavaThread* current_thread = JavaThread::current ();
1834
1834
HandleMark hm (current_thread);
1835
1835
1836
- JvmtiVTMSTransitionDisabler disabler;
1836
+ JvmtiVTMSTransitionDisabler disabler (thread) ;
1837
1837
ThreadsListHandle tlh (current_thread);
1838
1838
1839
1839
JavaThread* java_thread = nullptr ;
@@ -1877,7 +1877,7 @@ JvmtiEnv::PopFrame(jthread thread) {
1877
1877
if (thread == nullptr ) {
1878
1878
return JVMTI_ERROR_INVALID_THREAD;
1879
1879
}
1880
- JvmtiVTMSTransitionDisabler disabler;
1880
+ JvmtiVTMSTransitionDisabler disabler (thread) ;
1881
1881
ThreadsListHandle tlh (current_thread);
1882
1882
1883
1883
JavaThread* java_thread = nullptr ;
@@ -1925,7 +1925,7 @@ JvmtiEnv::GetFrameLocation(jthread thread, jint depth, jmethodID* method_ptr, jl
1925
1925
JavaThread* current_thread = JavaThread::current ();
1926
1926
HandleMark hm (current_thread);
1927
1927
1928
- JvmtiVTMSTransitionDisabler disabler;
1928
+ JvmtiVTMSTransitionDisabler disabler (thread) ;
1929
1929
ThreadsListHandle tlh (current_thread);
1930
1930
1931
1931
JavaThread* java_thread = nullptr ;
@@ -1965,7 +1965,7 @@ JvmtiEnv::GetFrameLocation(jthread thread, jint depth, jmethodID* method_ptr, jl
1965
1965
jvmtiError
1966
1966
JvmtiEnv::NotifyFramePop (jthread thread, jint depth) {
1967
1967
ResourceMark rm;
1968
- JvmtiVTMSTransitionDisabler disabler;
1968
+ JvmtiVTMSTransitionDisabler disabler (thread) ;
1969
1969
ThreadsListHandle tlh;
1970
1970
1971
1971
JavaThread* java_thread = nullptr ;
@@ -2243,7 +2243,7 @@ JvmtiEnv::GetLocalObject(jthread thread, jint depth, jint slot, jobject* value_p
2243
2243
// doit_prologue(), but after doit() is finished with it.
2244
2244
ResourceMark rm (current_thread);
2245
2245
HandleMark hm (current_thread);
2246
- JvmtiVTMSTransitionDisabler disabler;
2246
+ JvmtiVTMSTransitionDisabler disabler (thread) ;
2247
2247
ThreadsListHandle tlh (current_thread);
2248
2248
2249
2249
JavaThread* java_thread = nullptr ;
@@ -2284,7 +2284,7 @@ JvmtiEnv::GetLocalInstance(jthread thread, jint depth, jobject* value_ptr){
2284
2284
// doit_prologue(), but after doit() is finished with it.
2285
2285
ResourceMark rm (current_thread);
2286
2286
HandleMark hm (current_thread);
2287
- JvmtiVTMSTransitionDisabler disabler;
2287
+ JvmtiVTMSTransitionDisabler disabler (thread) ;
2288
2288
ThreadsListHandle tlh (current_thread);
2289
2289
2290
2290
JavaThread* java_thread = nullptr ;
@@ -2326,7 +2326,7 @@ JvmtiEnv::GetLocalInt(jthread thread, jint depth, jint slot, jint* value_ptr) {
2326
2326
// doit_prologue(), but after doit() is finished with it.
2327
2327
ResourceMark rm (current_thread);
2328
2328
HandleMark hm (current_thread);
2329
- JvmtiVTMSTransitionDisabler disabler;
2329
+ JvmtiVTMSTransitionDisabler disabler (thread) ;
2330
2330
ThreadsListHandle tlh (current_thread);
2331
2331
2332
2332
JavaThread* java_thread = nullptr ;
@@ -2368,7 +2368,7 @@ JvmtiEnv::GetLocalLong(jthread thread, jint depth, jint slot, jlong* value_ptr)
2368
2368
// doit_prologue(), but after doit() is finished with it.
2369
2369
ResourceMark rm (current_thread);
2370
2370
HandleMark hm (current_thread);
2371
- JvmtiVTMSTransitionDisabler disabler;
2371
+ JvmtiVTMSTransitionDisabler disabler (thread) ;
2372
2372
ThreadsListHandle tlh (current_thread);
2373
2373
2374
2374
JavaThread* java_thread = nullptr ;
@@ -2410,7 +2410,7 @@ JvmtiEnv::GetLocalFloat(jthread thread, jint depth, jint slot, jfloat* value_ptr
2410
2410
// doit_prologue(), but after doit() is finished with it.
2411
2411
ResourceMark rm (current_thread);
2412
2412
HandleMark hm (current_thread);
2413
- JvmtiVTMSTransitionDisabler disabler;
2413
+ JvmtiVTMSTransitionDisabler disabler (thread) ;
2414
2414
ThreadsListHandle tlh (current_thread);
2415
2415
2416
2416
JavaThread* java_thread = nullptr ;
@@ -2452,7 +2452,7 @@ JvmtiEnv::GetLocalDouble(jthread thread, jint depth, jint slot, jdouble* value_p
2452
2452
// doit_prologue(), but after doit() is finished with it.
2453
2453
ResourceMark rm (current_thread);
2454
2454
HandleMark hm (current_thread);
2455
- JvmtiVTMSTransitionDisabler disabler;
2455
+ JvmtiVTMSTransitionDisabler disabler (thread) ;
2456
2456
ThreadsListHandle tlh (current_thread);
2457
2457
2458
2458
JavaThread* java_thread = nullptr ;
@@ -2493,7 +2493,7 @@ JvmtiEnv::SetLocalObject(jthread thread, jint depth, jint slot, jobject value) {
2493
2493
// doit_prologue(), but after doit() is finished with it.
2494
2494
ResourceMark rm (current_thread);
2495
2495
HandleMark hm (current_thread);
2496
- JvmtiVTMSTransitionDisabler disabler;
2496
+ JvmtiVTMSTransitionDisabler disabler (thread) ;
2497
2497
ThreadsListHandle tlh (current_thread);
2498
2498
2499
2499
JavaThread* java_thread = nullptr ;
@@ -2530,7 +2530,7 @@ JvmtiEnv::SetLocalInt(jthread thread, jint depth, jint slot, jint value) {
2530
2530
// doit_prologue(), but after doit() is finished with it.
2531
2531
ResourceMark rm (current_thread);
2532
2532
HandleMark hm (current_thread);
2533
- JvmtiVTMSTransitionDisabler disabler;
2533
+ JvmtiVTMSTransitionDisabler disabler (thread) ;
2534
2534
ThreadsListHandle tlh (current_thread);
2535
2535
2536
2536
JavaThread* java_thread = nullptr ;
@@ -2567,7 +2567,7 @@ JvmtiEnv::SetLocalLong(jthread thread, jint depth, jint slot, jlong value) {
2567
2567
// doit_prologue(), but after doit() is finished with it.
2568
2568
ResourceMark rm (current_thread);
2569
2569
HandleMark hm (current_thread);
2570
- JvmtiVTMSTransitionDisabler disabler;
2570
+ JvmtiVTMSTransitionDisabler disabler (thread) ;
2571
2571
ThreadsListHandle tlh (current_thread);
2572
2572
2573
2573
JavaThread* java_thread = nullptr ;
@@ -2604,7 +2604,7 @@ JvmtiEnv::SetLocalFloat(jthread thread, jint depth, jint slot, jfloat value) {
2604
2604
// doit_prologue(), but after doit() is finished with it.
2605
2605
ResourceMark rm (current_thread);
2606
2606
HandleMark hm (current_thread);
2607
- JvmtiVTMSTransitionDisabler disabler;
2607
+ JvmtiVTMSTransitionDisabler disabler (thread) ;
2608
2608
ThreadsListHandle tlh (current_thread);
2609
2609
2610
2610
JavaThread* java_thread = nullptr ;
@@ -2641,7 +2641,7 @@ JvmtiEnv::SetLocalDouble(jthread thread, jint depth, jint slot, jdouble value) {
2641
2641
// doit_prologue(), but after doit() is finished with it.
2642
2642
ResourceMark rm (current_thread);
2643
2643
HandleMark hm (current_thread);
2644
- JvmtiVTMSTransitionDisabler disabler;
2644
+ JvmtiVTMSTransitionDisabler disabler (thread) ;
2645
2645
ThreadsListHandle tlh (current_thread);
2646
2646
2647
2647
JavaThread* java_thread = nullptr ;
1 commit comments
openjdk-notifier[bot] commentedon Feb 14, 2023
Review
Issues