RFR: 8346609: Improve MemorySegment.toString

Maurizio Cimadamore mcimadamore at openjdk.org
Fri Dec 20 09:49:35 UTC 2024


On Thu, 19 Dec 2024 17:41:29 GMT, Jorn Vernee <jvernee at openjdk.org> wrote:

> I would find it reasonable to add `isAlive=true/false` to that, but it's not a property of the MS itself, but of the scope that it is attached to, so I'm not sure.

And even for liveness, the fact that this info could be updated concurrently makes it a bit hard to capture in the toString output - e.g. "was alive when printed" :-)

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

PR Comment: https://git.openjdk.org/jdk/pull/22826#issuecomment-2556640669


More information about the core-libs-dev mailing list