RFR (XXS): 8143220: Fix documentation of InitiatingHeapOccupancyPercent

Thomas Schatzl thomas.schatzl at oracle.com
Fri Feb 5 16:00:05 UTC 2016


Hi,

On Fri, 2016-02-05 at 15:49 +0100, ecki at zusammenkunft.net wrote:
> Hello,
> 
> Isnt this used for CMS also?

The flag is only ever referenced by G1 code.

CMS uses a combination of CMSInitiatingOccupancyFraction,
 CMSTriggerRatio and CMSBootstrapOccupancy.

> Should it mention OccupancyOnly option?

Not sure what you mean, do you think that the text should mention the
G1UseAdaptiveIHOP flag?

I would like to avoid a global option (in globals.hpp) referencing a G1
specific flag, although the global option clearly is also collector
specific flag.

> What is meant with "at the end of next GC"?

The collector decides (in the typical case - listing all exceptions
would make the text half a page at least) at the end of a collection
whether the next gc should be a start of a concurrent cycle (i.e.
marking started).

I.e. the current max old gen occupancy is compared to the current
initiating threshold at the end of every gc.

Thanks,
  Thomas




More information about the hotspot-gc-dev mailing list