Skip to content
Permalink
Browse files
Fix from Leonid for properly marking suspended vthreads as toBeResume…
…d. Also fixed type in name of incrementSuspendCountHelper function.
  • Loading branch information
plummercj committed Mar 11, 2021
1 parent bb4fdd1 commit 6f9eb041903efdceb23c840e5f2c2c8318e2a8e8
Showing 1 changed file with 3 additions and 2 deletions.
@@ -1568,8 +1568,9 @@ contains(JNIEnv *env, jthread *list, jint count, jthread item)


static jvmtiError
incrementSupendCountHelper(JNIEnv *env, ThreadNode *node, void *arg)
incrementSuspendCountHelper(JNIEnv *env, ThreadNode *node, void *arg)
{
node->toBeResumed = JNI_TRUE;
node->suspendCount++;
return JVMTI_ERROR_NONE;
}
@@ -1631,7 +1632,7 @@ threadControl_suspendAll(void)
* commonResumeList(), so it's a bit orthogonal to how we handle incrementing
* the suspendCount.
*/
error = enumerateOverThreadList(env, &runningVThreads, incrementSupendCountHelper, NULL);
error = enumerateOverThreadList(env, &runningVThreads, incrementSuspendCountHelper, NULL);
JDI_ASSERT(error == JVMTI_ERROR_NONE);
}

0 comments on commit 6f9eb04

Please sign in to comment.