RFR: 8343531: Improve print_location for invalid heap pointers

Volker Simonis simonis at openjdk.org
Mon Nov 4 11:03:29 UTC 2024


On Mon, 4 Nov 2024 10:01:39 GMT, Albert Mingkun Yang <ayang at openjdk.org> wrote:

> > However, the block_start() functionality is not fully implemented for all GCs (e.g. the young generation of ParallelScavengeHeap) and for these cases block_start() returns NULL.
> 
> Can we implement it properly for all gcs, instead of working around the issue in the caller?

Everything is possible :) but I think it is not trivial. The problem is that we can crash at any time. In order to implement it reliably, we would have to make the heap walkable but I don't think we want to do this in the crash handler. Any suggestions?

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

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


More information about the hotspot-gc-dev mailing list