RFR: 8134963 [Newtests] New tests for G1 remembered set up and down

Dmitry Fazunenko dmitry.fazunenko at oracle.com
Fri Nov 13 17:31:00 UTC 2015


I was noticed that this is a stress test and should be properly marked 
with "@key stress"
The test was also moved from test/gc/g1/ to tests/stress/gc.

New webrev: http://cr.openjdk.java.net/~dfazunen/8134963/webrev.02/

If you are interested in how an output from the test will look like:
----------System.out:(17/502)----------
%% Memory
%%   used          :        2M
%%   available     :        2045M
%%   to allocate   :        1840M
%%   G1 Region Size:        1M
%% Objects:
%%   Number of objects:       18400
%%   objects in region:       10
%%   N (array length) :       26210
%%   Reference size   :       4
%%   Approximate size :       104840(102K)
%%   Reference number :       1840
%% Execution:
%%   Number of iterations: 15
%%   Time spent:           10seconds
%%   Free memory left:     195M
%% Test passed

Thanks,
Dima
----------System.err:(1/15)----------

On 13.11.2015 18:15, Dmitry Fazunenko wrote:
> Hi everyone,
>
> Can I have a couple of reviews for the new test for G1 Remembered Set:
>
> https://bugs.openjdk.java.net/browse/JDK-8134963
> http://cr.openjdk.java.net/~dfazunen/8134963/
>
> The test creates a lot of cross region references (making RSet to grow 
> up) and then clear that references up.
> The test doesn't check any particular assertions, it just expects that 
> there will be no crash.
>
> Thanks,
> Dima




More information about the hotspot-gc-dev mailing list