File tree Expand file tree Collapse file tree 3 files changed +4
-33
lines changed
src/jdk.jdwp.agent/share/native/libjdwp Expand file tree Collapse file tree 3 files changed +4
-33
lines changed Original file line number Diff line number Diff line change @@ -1516,22 +1516,9 @@ threadControl_suspendAll(void)
1516
1516
error = AGENT_ERROR_OUT_OF_MEMORY ;
1517
1517
goto err ;
1518
1518
}
1519
- if (canSuspendResumeThreadLists ()) {
1520
- error = commonSuspendList (env , count , threads );
1521
- if (error != JVMTI_ERROR_NONE ) {
1522
- goto err ;
1523
- }
1524
- } else {
1525
-
1526
- int i ;
1527
-
1528
- for (i = 0 ; i < count ; i ++ ) {
1529
- error = commonSuspend (env , threads [i ], JNI_FALSE );
1530
-
1531
- if (error != JVMTI_ERROR_NONE ) {
1532
- goto err ;
1533
- }
1534
- }
1519
+ error = commonSuspendList (env , count , threads );
1520
+ if (error != JVMTI_ERROR_NONE ) {
1521
+ goto err ;
1535
1522
}
1536
1523
1537
1524
/*
@@ -1590,12 +1577,7 @@ threadControl_resumeAll(void)
1590
1577
* no need to get the whole thread list from JVMTI (unlike
1591
1578
* suspendAll).
1592
1579
*/
1593
- if (canSuspendResumeThreadLists ()) {
1594
- error = commonResumeList (env );
1595
- } else {
1596
- error = enumerateOverThreadList (env , & runningThreads ,
1597
- resumeHelper , NULL );
1598
- }
1580
+ error = commonResumeList (env );
1599
1581
if ((error == JVMTI_ERROR_NONE ) && (otherThreads .first != NULL )) {
1600
1582
error = enumerateOverThreadList (env , & otherThreads ,
1601
1583
resumeHelper , NULL );
Original file line number Diff line number Diff line change @@ -962,16 +962,6 @@ jvmtiMicroVersion(void)
962
962
>> JVMTI_VERSION_SHIFT_MICRO ;
963
963
}
964
964
965
- jboolean
966
- canSuspendResumeThreadLists (void )
967
- {
968
- jvmtiError error ;
969
- jvmtiCapabilities cap ;
970
-
971
- error = jvmtiGetCapabilities (& cap );
972
- return (error == JVMTI_ERROR_NONE && cap .can_suspend );
973
- }
974
-
975
965
jvmtiError
976
966
getSourceDebugExtension (jclass clazz , char * * extensionPtr )
977
967
{
Original file line number Diff line number Diff line change @@ -337,7 +337,6 @@ jint jvmtiMajorVersion(void);
337
337
jint jvmtiMinorVersion (void );
338
338
jint jvmtiMicroVersion (void );
339
339
jvmtiError getSourceDebugExtension (jclass clazz , char * * extensionPtr );
340
- jboolean canSuspendResumeThreadLists (void );
341
340
342
341
jrawMonitorID debugMonitorCreate (char * name );
343
342
void debugMonitorEnter (jrawMonitorID theLock );
You can’t perform that action at this time.
0 commit comments