RFR: JDK-8293978: Duplicate simple loop back-edge will crash the vm [v3]

王超 duke at openjdk.org
Tue Sep 20 01:22:53 UTC 2022


On Tue, 20 Sep 2022 01:17:52 GMT, 王超 <duke at openjdk.org> wrote:

>> test/hotspot/jtreg/compiler/c2/TestDuplicateSimpleLoopBackedge.java line 74:
>> 
>>> 72:         thread.start();
>>> 73:         Thread.sleep(Utils.adjustTimeout(4000));
>>> 74:     }
>> 
>> Can be simplified to just:
>> 
>> 
>>                     TestDuplicateSimpleLoopBackedge n = new TestDuplicateSimpleLoopBackedge();
>>                     for (int i = 0; i < 10000; ++i) {
>>                         n.j(args);
>>                     }
>> 
>> and then you can run the test with `-Xbatch` which disabled background compilation and waits until the compilation is complete.
>
> done

Thank you for the review, the test has been changed according to the suggestions.

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

PR: https://git.openjdk.org/jdk/pull/10329


More information about the hotspot-compiler-dev mailing list