Why does the Subphase weak roots JVMTIWeakExport is always increasing?

Stefan Karlsson stefan.karlsson at oracle.com
Mon Sep 5 12:41:47 UTC 2022


My guess is that you have some kind of JVMTI agent that adds objects 
tags. See:
https://docs.oracle.com/en/java/javase/11/docs/specs/jvmti.html#objectTags

The JVM holds an internal hashmap from object to tags. In older ZGCs 
releases we updated the object references in that hashmap during a 
pause. This was later moved to a concurrent phase with 
https://bugs.openjdk.org/browse/JDK-8212879.

StefanK

On 2022-09-05 11:19, 苗昌宇 wrote:
> When I use ZGC on JDK11.0.8 in an online service, I find the time of 
> Subphase weak roots JVMTIWeakExport is always increasing as our 
> service is running. I want to know want made that?
> Hope you will teach me.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/zgc-dev/attachments/20220905/c8a1de32/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: %E7%B2%98%E8%B4%B4%E7%9A%84%E5%9B%BE%E5%BD%A2-1.png
Type: image/png
Size: 167388 bytes
Desc: not available
URL: <https://mail.openjdk.org/pipermail/zgc-dev/attachments/20220905/c8a1de32/E7B298E8B4B4E79A84E59BBEE5BDA2-1-0001.png>


More information about the zgc-dev mailing list