RFR (S): 8136398: Create test that checks that G1 MixedGC produces correct output to logfile
Kirill Zhaldybin
kirill.zhaldybin at oracle.com
Wed Sep 23 12:07:14 UTC 2015
Hi Thomas,
Thank you for reviewing my fix.
Please read comments inline.
Regards, Kirill
On 23.09.2015 11:05, Thomas Schatzl wrote:
> Hi Kirill,
>
> On Fri, 2015-09-18 at 14:35 +0300, Kirill Zhaldybin wrote:
>> Hi!
>>
>> Could you please review a patch for JDK-8136398?
>>
>> I added very simple test that starts JVM with "-XX:+PrintGC" or
>> "-XX:+PrintGCDetails" flags, provokes mixed gc and checks that
>> corresponding log entry appears in gc log.
>>
>> CR: https://bugs.openjdk.java.net/browse/JDK-8136398
>>
>> Webrev:
>>
>> hotspot: http://cr.openjdk.java.net/~kzhaldyb/webrevs/JDK-8136398/webrev.00/
Webrev:
hotspot: http://cr.openjdk.java.net/~kzhaldyb/webrevs/JDK-8136398/webrev.01/
>
> - the @requires tag to enforce use of G1 is missing.
fixed.
>
> - I do not really like the busy wait for completion of the concurrent
> marking in lines 140 and 143 of the test. This will (for a short while
> at least) max out one cpu. Maybe a sleep(0) would "help" here?
fixed. waitTillCMCFinished method is going to move into share part when
other mixed gc tests will be finished.
>
> - I am not sure what "MixedGC" class is referenced in the comment of
> the MixedGCProvoker method. There does not seem to be a WhiteBox method
> to provoke a mixed gc either.
fixed.
>
> - there is a small typo in that same comment: I think the "promote"
> verb in the second sentence requires a third person singular "s" here.
fixed.
>
> Thanks,
> Thomas
>
More information about the hotspot-gc-dev
mailing list