Logging of all GC memory access

Andrew Haley aph at redhat.com
Mon Jun 8 09:21:25 UTC 2020

On 08/06/2020 10:17, Thomas Schatzl wrote:
> In case of accesses to the Java heap (and not general memory accesses) 
> by the VM (that does not include compiled code, but includes "other" 
> accesses) you could probably look whether hooking into the Access class 
> and derivatives (RawAccess, HeapAccess, ArrayAccess) helps.

I was composing another reply. I'd add that I'd create a ring buffer and
add logging to G1ParScanThreadState::copy_to_survivor_space and its friends.
But it depends on exactly what OP wants.

Andrew Haley  (he/him)
Java Platform Lead Engineer
Red Hat UK Ltd. <https://www.redhat.com>
EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671

More information about the hotspot-gc-dev mailing list