RFR: 8261152: Refine the compiler/vectorapi/VectorRebracket128Test.java test

Nils Eliasson neliasso at openjdk.java.net
Tue May 18 21:36:45 UTC 2021


On Sun, 7 Feb 2021 09:58:57 GMT, 王超 <github.com+25214855+casparcwang at openjdk.org> wrote:

>> test/hotspot/jtreg/compiler/vectorapi/VectorRebracket128Test.java line 63:
>> 
>>> 61:             while (true) {
>>> 62:                 try {
>>> 63:                     System.gc();
>> 
>> Please, give the following options a try: `-XX:ZCollectionInterval=0.01 -XX:ZFragmentationLimit=0`.
>> According to ZGC folks, it should force continuous GC cycles w/ ZGC.
>
> The original version with option 'CICompilerCount' passed (passed means the bug is not triggered) 5 times in 100 runs, the background gc version passed 8 times in 100 runs. `ZCollectionInterval` passed 44 in 100 runs. 
> 
> Explicit trigger gc in the background thread and timer-based gc triggering perform the same thing, it's really strange to    behave differently in triggering the bug. The reason I guess is: the load barrier missing bug will only be triggered when the object is relocated and the pointer in another object is not remapped, which means the time window is very short, different options may pose different execution path (which creates different objects, threads, etc.).

Why change the options if the original version was better?

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

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


More information about the hotspot-compiler-dev mailing list