RFR(s): 8145312: CMS: There is insufficient memory with CMSSamplingGrain=1
sangheon.kim at oracle.com
Tue Mar 8 08:00:36 UTC 2016
Could I have some reviews for CMSSamplingGrain flag?
The flag is used to calculate points at which the young gen should be
partitioned for doing parallel work, so it only makes sense to partition
at a granularity equal to or larger than the object size.
I am proposing to change the minimum value of CMSSamplingGrain from '1'
to 'ObjectAlignmentInBytes'. (ObjectAlignmentInBytes has a range of [8,
In addition, I added a constraint function to avoid an arithmetic
overflow by its maximum value.
Testing: JPRT, RBT for all platforms including embedded
More information about the hotspot-gc-dev