Questions regrading metaspace
Krystal Mok
rednaxelafx at gmail.com
Tue Mar 1 02:25:18 UTC 2016
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/20160229/7c86f3a7/attachment.html>
More information about the hotspot-gc-use
mailing list