[master] RFR: Rendezvous GC threads under STS for monitor deflation

Roman Kennke rkennke at openjdk.java.net
Thu Oct 28 21:26:31 UTC 2021


On Thu, 28 Oct 2021 21:21:22 GMT, David Holmes <dholmes at openjdk.org> wrote:

> Why does a GC thread need to access a monitor?

It needs to access the Klass*, mainly for size & layout  (heap parsing). And Klass* is stored in the header. When object is locked via monitor, it needs to be able to reach through to the displaced header in the monitor.

-------------

PR: https://git.openjdk.java.net/lilliput/pull/27


More information about the lilliput-dev mailing list