RFR: 8343531: Improve print_location for invalid heap pointers

Albert Mingkun Yang ayang at openjdk.org
Tue Nov 5 05:38:27 UTC 2024


On Mon, 4 Nov 2024 15:08:00 GMT, Volker Simonis <simonis at openjdk.org> wrote:

> And that's again because the heap is in general not walkable when we call this function.

It depends on exactly when this function can be called, and with what arg. I wonder whether it can be called with a pointer to a obj that has not been properly initialized (with klass); if so, the heap is almost never walkable, since allocation is not atomic.

> the Serial implementation doesn't really work reliably

I am curious if other GCs' impl work (more) reliably, with regarding to the tlab example.

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

PR Comment: https://git.openjdk.org/jdk/pull/21870#issuecomment-2456274894


More information about the hotspot-gc-dev mailing list