RFR: 8033440: jmap reports unexpected used/free size of concurrent mark-sweep generation
mikael.gerdin at oracle.com
Fri Feb 14 06:27:30 PST 2014
On Friday 14 February 2014 09.13.21 Coleen Phillimore wrote:
> Why is this code in the SA in the first place? Did someone copy the CMS
> collector in there too?
To be able to calculate the amount of used and free memory in a CMS heap.
(jmap -heap <pid>)
> On 2/14/14 8:47 AM, Stefan Johansson wrote:
> > Hi,
> > Please review this change to fix:
> > https://bugs.openjdk.java.net/browse/JDK-8033440
> > Webrev:
> > http://cr.openjdk.java.net/~sjohanss/8033440/webrev.00/
> > Summary:
> > The compactibleFreeListSpace has been updated to use an
> > AdaptiveFreeList instead of a FreeList. This change has not been done
> > for the SA and it leads to using a too small element size when walking
> > through the list. When fixing this I realized that FreeList<FreeChunk>
> > and some other type declarations associated with it weren't used by
> > the SA, so I went ahead and removed them. I (or Eclipse) also changed
> > the Java *-imports to be specific ones.
> > Testing:
> > * JPRT for build and sanity.
> > * UTE run for tests listed in bug.
> > * Aurora run for tmtools.testlist.
> > Thanks,
> > Stefan
More information about the hotspot-dev