On Thu, 3 Jun 2021 21:21:45 GMT, Daniel D. Daugherty <dcu...@openjdk.org> wrote:

>> Leonid Mesnik has updated the pull request incrementally with one additional 
>> commit since the last revision:
>> 
>>   fixed comment
>
> test/hotspot/jtreg/serviceability/jvmti/DynamicCodeGenerated/DynamicCodeGeneratedTest.java
>  line 55:
> 
>> 53:                 Reference.reachabilityFence(result);
>> 54:             }).start();
>> 55:         }
> 
> I just noticed no `join()` calls to clean up these threads.
> Does this mean we'll have 10,000 thread objects waiting around
> until the end of the program?

Yes, we don't care about thread completion. Just start new threads while the 
first ones are completed.  I  reduced the number of threads to 2000. It is 
still enough to reproduce the crash. However, 2,000 thread doesn't harm any 
system. I checked in Mach5.

-------------

PR: https://git.openjdk.java.net/jdk/pull/4331

Reply via email to