On Wed, 11 Nov 2020 22:53:08 GMT, Daniel D. Daugherty <dcu...@openjdk.org> 
wrote:

>> test/hotspot/jtreg/vmTestbase/nsk/jvmti/GetCurrentContendedMonitor/contmon002.java
>>  line 61:
>> 
>>> 59: 
>>> 60:     public static int run(String argv[], PrintStream ref) {
>>> 61:         doSleep(); // If it would do any class loading, do it now.
>> 
>> I think now the spawned thread should not try to resolve any new methods 
>> after setting the boolean so we shouldn't have the same ObjectLocker issue.
>
> Perhaps:
> // If we need to load any classes do execute doSleep(), do it now.

Fixed

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

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

Reply via email to