RFR: 8261152: Refine the compiler/vectorapi/VectorRebracket128Test.java test
王超
github.com+25214855+casparcwang at openjdk.java.net
Sun Feb 7 10:01:46 UTC 2021
On Fri, 5 Feb 2021 10:29:34 GMT, Vladimir Ivanov <vlivanov at openjdk.org> wrote:
>> Refine test VectorRebracket128Test.java as discussed here https://github.com/openjdk/jdk16/pull/139#discussion_r567796847
>>
>> 1, Explicit trigger gc in the test
>> 2, Remove redundant imports
>> 3, Remove weird java options
>
> 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.).
-------------
PR: https://git.openjdk.java.net/jdk/pull/2422
More information about the hotspot-compiler-dev
mailing list