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

Du

On Mon, Feb 29, 2016 at 6:25 PM, Krystal Mok <rednaxel...@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 <dawn2...@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@openjdk.java.net
>> http://mail.openjdk.java.net/mailman/listinfo/hotspot-gc-use
>>
>>
>
_______________________________________________
hotspot-gc-use mailing list
hotspot-gc-use@openjdk.java.net
http://mail.openjdk.java.net/mailman/listinfo/hotspot-gc-use

Reply via email to