Skip to content

Commit

Permalink
Fixed nits
Browse files Browse the repository at this point in the history
  • Loading branch information
robehn committed Apr 16, 2021
1 parent 27bf041 commit d6e091d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/hotspot/share/prims/jvmtiEnv.cpp
Expand Up @@ -949,7 +949,7 @@ JvmtiEnv::SuspendThread(JavaThread* java_thread) {
}
if (!JvmtiSuspendControl::suspend(java_thread)) {
// Either the thread is already suspended or
// it was in process of exiting.
// it was in the process of exiting.
if (java_thread->is_exiting()) {
return JVMTI_ERROR_THREAD_NOT_ALIVE;
}
Expand Down Expand Up @@ -990,7 +990,7 @@ JvmtiEnv::SuspendThreadList(jint request_count, const jthread* request_list, jvm
}
if (!JvmtiSuspendControl::suspend(java_thread)) {
// Either the thread is already suspended or
// it was in process of exiting.
// it was in the process of exiting.
if (java_thread->is_exiting()) {
results[i] = JVMTI_ERROR_THREAD_NOT_ALIVE;
continue;
Expand All @@ -1003,7 +1003,7 @@ JvmtiEnv::SuspendThreadList(jint request_count, const jthread* request_list, jvm
if (self_index >= 0) {
if (!JvmtiSuspendControl::suspend(current)) {
// Either the thread is already suspended or
// it was in process of exiting.
// it was in the process of exiting.
if (current->is_exiting()) {
results[self_index] = JVMTI_ERROR_THREAD_NOT_ALIVE;
} else {
Expand Down

0 comments on commit d6e091d

Please sign in to comment.