mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8296492: Remove ObjectLocker in JVMTI get_subgroups call
Reviewed-by: dholmes, alanb, sspitsyn
This commit is contained in:
parent
171553a611
commit
d8c809b196
7 changed files with 56 additions and 100 deletions
|
@ -792,6 +792,14 @@ public class ThreadGroup implements Thread.UncaughtExceptionHandler {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a snapshot of the subgroups as an array, used by JVMTI.
|
||||
*/
|
||||
private ThreadGroup[] subgroupsAsArray() {
|
||||
List<ThreadGroup> groups = synchronizedSubgroups();
|
||||
return groups.toArray(new ThreadGroup[0]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a snapshot of the subgroups.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue