On Mon, 16 Mar 2026 12:46:31 GMT, Zhengyu Gu <[email protected]> wrote:
>> test/hotspot/jtreg/serviceability/threads/ThreadInfoTest.java line 49: >> >>> 47: private static final int NUM_THREADS = 2; >>> 48: static long [] ids = new long[NUM_THREADS]; >>> 49: static ThreadInfo [] infos = new ThreadInfo[NUM_THREADS]; >> >> Suggestion: >> >> static long[] ids = new long[NUM_THREADS]; >> static ThreadInfo[] infos = new ThreadInfo[NUM_THREADS]; > > This is converted from @kevinjwalls 's test case. @kevinjwalls could you > please comment? I am adding you as a contributor. Yes sure - this a test I came up with that reproduced the problem. If you synchronize or join your threads, then of course there was no crash. It had to be quite a _bad_ Java program.... 8-) But I can help tidy it up. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/30105#discussion_r2940826031
