Skip to content
Permalink
Browse files
Automatic merge of jdk:master into master
  • Loading branch information
duke committed Mar 22, 2021
2 parents d7dd3d2 + f62b100 commit 579c297331a95741ed83b3426cf364bfee1ce6cf
Showing 1 changed file with 4 additions and 4 deletions.
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -351,16 +351,16 @@ static jthreadGroup findThreadGroupByName(jvmtiEnv* jvmti, JNIEnv* jni, const ch
for (j = 0; j < groupsCount; j++) {
jvmtiThreadGroupInfo info;

if (groups[i] != NULL) {
if (groups[j] != NULL) {

if (!NSK_JVMTI_VERIFY(
jvmti->GetThreadGroupInfo(groups[i], &info))) {
jvmti->GetThreadGroupInfo(groups[j], &info))) {
nsk_jvmti_setFailStatus();
continue;
}

if (info.name != 0 && strcmp(info.name, name) == 0) {
foundGroup = groups[i];
foundGroup = groups[j];
break;
}
}

0 comments on commit 579c297

Please sign in to comment.