RFR: 8170067: -XX:ExplicitGCInvokesConcurrentAndUnloadsClasses is not implemented for G1

Thomas Schatzl thomas.schatzl at oracle.com
Wed Nov 23 14:28:53 UTC 2016


On Wed, 2016-11-23 at 14:05 +0100, Erik Helin wrote:
> Hi all,
> I just added support for 
> -XX:ExplicitGCInvokesConcurrentAndUnloadsClasses in G1. Since G1
> already 
> unloads classes after a concurrent mark by default, I just made 
> -XX:+ExplicitGCInvokesConcurrentAndUnloadsClasses enable 
> -XX:+ExplicitGCInvokesConcurrent. I also added a constraint function
> to check for some bad flag combinations and a corresponding test.
> Bug:
> https://bugs.openjdk.java.net/browse/JDK-8170067
> Webrev:
> http://cr.openjdk.java.net/~ehelin/8170067/00/

  looks good.

Not sure if it is useful to add a warning for the use
of ExplicitGCInvokesConcurrentAndUnloadsClasses with G1 (ie. that it is
mapped to ExplicitGCInvokesConcurrent). Maybe somebody else has an
opinion about this.


More information about the hotspot-gc-dev mailing list