RFR: 8154096: Extend WhiteBox API with methods which retrieve from VM information about available GC

Dmitry Fazunenko dmitry.fazunenko at oracle.com
Wed Apr 13 14:54:55 UTC 2016


Hello,

I'm looking for a couple of reviews of the change extending the WhiteBox 
API to retrieve information about
supported collectors and how the collector was selected.

https://bugs.openjdk.java.net/browse/JDK-8154096
http://cr.openjdk.java.net/~dfazunen/8154096/webrev.00/

This change is required to improve work of the jtreg @requires. Now 
jtreg sets vm.gc property
based on the given flags (matching VM options  for -XX:+Use???GC 
pattern).  The extended WhitBox API
will allow us to set properties like:
     vm.supportsSerialGC
     vm.supportsParallelGC
     vm.supportsConcMarkSweeGC
     vm.supportsG1GC

And use in test more reliable expression:
   @requires vm.supportsG1GC
instead of
   @requires vm.gc == null | vm.gc == "G1"

The following CRs are blocked by this RFE.
JDK-8151283 <https://bugs.openjdk.java.net/browse/JDK-8151283>: 
Implement setting jtreg @requires property vm.isG1Supported.
JDK-8153758 <https://bugs.openjdk.java.net/browse/JDK-8153758> : 
@requires should use more accurate GC type parsing.

Tested locally.

Thanks,
Dima
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/hotspot-gc-dev/attachments/20160413/b5d6043c/attachment.html>


More information about the hotspot-gc-dev mailing list