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)
15161516 error = AGENT_ERROR_OUT_OF_MEMORY ;
15171517 goto err ;
15181518 }
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 ;
15351522 }
15361523
15371524 /*
@@ -1590,12 +1577,7 @@ threadControl_resumeAll(void)
15901577 * no need to get the whole thread list from JVMTI (unlike
15911578 * suspendAll).
15921579 */
1593- if (canSuspendResumeThreadLists ()) {
1594- error = commonResumeList (env );
1595- } else {
1596- error = enumerateOverThreadList (env , & runningThreads ,
1597- resumeHelper , NULL );
1598- }
1580+ error = commonResumeList (env );
15991581 if ((error == JVMTI_ERROR_NONE ) && (otherThreads .first != NULL )) {
16001582 error = enumerateOverThreadList (env , & otherThreads ,
16011583 resumeHelper , NULL );
Original file line number Diff line number Diff line change @@ -962,16 +962,6 @@ jvmtiMicroVersion(void)
962962 >> JVMTI_VERSION_SHIFT_MICRO ;
963963}
964964
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-
975965jvmtiError
976966getSourceDebugExtension (jclass clazz , char * * extensionPtr )
977967{
Original file line number Diff line number Diff line change @@ -337,7 +337,6 @@ jint jvmtiMajorVersion(void);
337337jint jvmtiMinorVersion (void );
338338jint jvmtiMicroVersion (void );
339339jvmtiError getSourceDebugExtension (jclass clazz , char * * extensionPtr );
340- jboolean canSuspendResumeThreadLists (void );
341340
342341jrawMonitorID debugMonitorCreate (char * name );
343342void debugMonitorEnter (jrawMonitorID theLock );
You can’t perform that action at this time.
0 commit comments