Tracking object relocations in Java 8

David Griffiths dgriffiths at undo.io
Thu Nov 19 12:35:34 UTC 2020


Thanks Andrew, will take a look. Haven't reported the bug yet, sorry for
delay - as I'm supposedly now a contributor I was going to try and submit
the bug report myself but haven't got round to it yet!

Cheers,

David

On Thu, 19 Nov 2020 at 10:41, Andrew Haley <aph at redhat.com> wrote:

> On 11/16/20 6:38 PM, David Griffiths wrote:
> > Hi, I have a need to track object relocations in Java 8 with whatever the
> > default GC is. I would like to do this by setting a gdb conditional
> > breakpoint somewhere in the JVM such that it will stop when the copy to
> > address is a certain value (*). Can anyone point me in the right
> direction
> > for such a breakpoint please? Not looking for a clean solution, just
> > anything that will work.
>
> Assuming G1 (and you really should say which collector you're using)
>
> G1ParCopyClosure<barrier, do_mark_object>::do_oop_work
>
> but there may be a few other places too.
>
> By the way, you reported a bug in SA to this list. Did you ever get around
> to creating a bug report? Thanks,
>
> --
> Andrew Haley  (he/him)
> Java Platform Lead Engineer
> Red Hat UK Ltd. <https://www.redhat.com>
> https://keybase.io/andrewhaley
> EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671
>
>

-- 
David Griffiths, Senior Software Engineer

Undo <https://undo.io> | Accelerate software defect resolution by
eliminating the guesswork in failure diagnosis



More information about the hotspot-gc-dev mailing list