RFR: Uncolorize addresses when using Generational ZGC

Ivo Anjo duke at openjdk.org
Thu May 29 16:14:02 UTC 2025


On Thu, 8 May 2025 01:37:35 GMT, Anton Rybochkin <duke at openjdk.org> wrote:

> Because of color bits in lower positions, object alignment size heuristics does not work with generational ZGC. This PR implements address uncolorizing so alignment size and hence object size is calculated correctly

I was running https://github.com/corretto/heapothesys on JDK 24 with ZGC and it was breaking with 


Caused by: java.lang.NegativeArraySizeException: -1047953
	at com.amazon.corretto.benchmark.hyperalloc.AllocObject.<init>(AllocObject.java:29)


due to the size fetched from jol. Running heapothesys with jol from this PR fixed it! 👍

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

PR Comment: https://git.openjdk.org/jol/pull/65#issuecomment-2919893879


More information about the jol-dev mailing list