Questions regrading metaspace

Du Li dawn2004 at gmail.com
Wed Mar 2 19:52:58 UTC 2016


Thanks a lot, Krystal!
It's very helpful.

Du

On Mon, Feb 29, 2016 at 6:25 PM, Krystal Mok <rednaxelafx at gmail.com> wrote:

> Hi Du,
>
> 1. Yes, in various places. e.g. the ClassLoaderData object itself, the
> Dependencies arrays, and the Klasses.
>
> 2. Please refer to [1]:
>
> // ClassLoaderData are stored in the runtime representation of classes and
> the
> // system dictionary, are roots of garbage collection, and provides
> iterators
> // for root tracing and other GC operations.
>
> You might want to read the source code around from process_roots() ->
> ClassLoaderDataGraph::roots_cld_do() and then down to
> ClassLoaderData::oops_do()/classes_do().
>
> [1]:
> http://hg.openjdk.java.net/jdk9/jdk9/hotspot/file/0e6f2f47479c/src/share/vm/classfile/classLoaderData.hpp#l48
>
> - Kris
>
> On Mon, Feb 29, 2016 at 4:32 PM, Du Li <dawn2004 at gmail.com> wrote:
>
>> Hi guys,
>>
>> I have a few questions regarding metaspace in hotspot.
>>
>> 1. Can an object in metaspace reference to an object in java heap?
>> 2. If 1. is yes, how does GC handle such references when deciding the
>> liveness of an object in java heap?
>>
>> Thanks.
>>
>> Du
>>
>> _______________________________________________
>> hotspot-gc-use mailing list
>> hotspot-gc-use at openjdk.java.net
>> http://mail.openjdk.java.net/mailman/listinfo/hotspot-gc-use
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/hotspot-gc-use/attachments/20160302/9c5b46eb/attachment.html>


More information about the hotspot-gc-use mailing list