RFR: 8066122: CollectionUsageThreshold.java times out when run with -XX:+ExplicitGCInvokesConcurrent

Kim Barrett kim.barrett at oracle.com
Wed Dec 10 20:05:43 UTC 2014


On Dec 3, 2014, at 8:34 AM, Michail Chernov <michail.chernov at oracle.com> wrote:
> 
> Hi,
> 
> Please review small fix for:
> https://bugs.openjdk.java.net/browse/JDK-8066122
> 
> Webrev:
> http://cr.openjdk.java.net/~eistepan/~mchernov/8066122/webrev.00/
> 
> Summary:  CollectionUsageThreshold.java hangs due to VM performs concurrent GC with -XX:+ExplicitGCInvokesConcurrent flag, as result - notification is not received. Excluded test execution with -XX:+ExplicitGCInvokesConcurrent.
> 
> Thanks,
> Michail

In a recent webrev discussion thread I saw the statement:

    Other similar tests that had the same problem has solved this by
    adding -XX:-ExplicitGCInvokesConcurrent on the command line. My
    fix here is the same.

If that is indeed the accepted approach, then CollectionUsageThreshold
should be changed in a similar manner, rather than using @requires.

[I think both approaches have pluses and minuses, but think I mildly
prefer the argument override approach rather than @requires for this.]



More information about the hotspot-gc-dev mailing list