Question regarding JVM crashes in GC

Michael Rasmussen michael.rasmussen at
Wed Apr 5 14:34:10 UTC 2017

On 5 April 2017 at 15:41, Stefan Johansson <stefan.johansson at> wrote:
> All these assertions are in MarkSweep::adjust_pointer and they suggest that
> you are visiting an object with bad references. What's causing this is
> really hard to say without more information. It sounds like this is easy for
> you to reproduce, could we run the same tests ourselves? Or could you
> construct a reproducer that we can run?

Yes, it reproduces every single time :)

At the moment, I assume it has something to do with
java.lang.ref.Reference, as I see
InstanceRefKlass::oop_ms_adjust_pointers(oop)+0x281 in the stacktrace
in the core file. And I know we use a lot of weak references.

Unfortunately, currently I cannot share the test, but I'll try to see
if can make a small standalone test case that I can share.


More information about the hotspot-dev mailing list