RFR: 8000754: NPG: Implement a MemoryPool MXBean for Metaspace

Jon Masamitsu jon.masamitsu at oracle.com
Thu Feb 21 04:22:56 UTC 2013


Erik,

These changes look good.

used_in_bytes() and capacity_in_bytes() do run
over the classloader data graph and as such
are not free to call.  I generally think to use them
in assertion checking or where I don't expect
them to be executed much.  Here I expect they
are executed in response to some type of
intermittent query.  If you think they will be
executed continuously, we should talk about
the alternatives.

Jon



On 2/20/2013 3:02 AM, Erik Helin wrote:
> Hi,
>
> this change implements a new MemoryManagerMXBean, MetaspaceManager, as
> well as two new MemoryPoolMXBeans: Metaspace and Class Metaspace. I have
> also written a tests that tests the new beans.
>
> Webrev:
> http://cr.openjdk.java.net/~ehelin/8000754/webrev.01/
>
> Bug:
> http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=8000754
>
> Testing:
> JPRT
> New jtreg test
>
> Thanks,
> Erik




More information about the hotspot-gc-dev mailing list