Skip to content

Commit f62b100

Browse files
committed
8263895: Test nsk/jvmti/GetThreadGroupChildren/getthrdgrpchld001/getthrdgrpchld001.cpp uses incorrect indices
Reviewed-by: amenkov, kevinw
1 parent f84b52b commit f62b100

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/hotspot/jtreg/vmTestbase/nsk/jvmti/GetThreadGroupChildren/getthrdgrpchld001/getthrdgrpchld001.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2021, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* 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
351351
for (j = 0; j < groupsCount; j++) {
352352
jvmtiThreadGroupInfo info;
353353

354-
if (groups[i] != NULL) {
354+
if (groups[j] != NULL) {
355355

356356
if (!NSK_JVMTI_VERIFY(
357-
jvmti->GetThreadGroupInfo(groups[i], &info))) {
357+
jvmti->GetThreadGroupInfo(groups[j], &info))) {
358358
nsk_jvmti_setFailStatus();
359359
continue;
360360
}
361361

362362
if (info.name != 0 && strcmp(info.name, name) == 0) {
363-
foundGroup = groups[i];
363+
foundGroup = groups[j];
364364
break;
365365
}
366366
}

0 commit comments

Comments
 (0)