RFR: 8354887: Preserve runtime blobs in AOT code cache [v2]

John Rose john.r.rose at oracle.com
Thu May 8 00:31:28 UTC 2025


On 7 May 2025, at 12:37, Vladimir Kozlov wrote:

> I think it is fine not use AOT code when the heap base does not match. Based on my test it will happen only with big heap's size difference between assembly and production runs.

Won’t ASLR spoil matches on some platforms?

The match must depend on how the VM negotiates memory
segments with the OS.  If the OS is committed to random
segment assignment, then routine mismatch is something
we should be prepared to address, as the issue comes up.

(I’m not saying we need to address it now, if tests
seem to behave properly.  But I suspect even now there
are some platforms that will throw a monkey wrench at us.)

ASLR: https://en.wikipedia.org/wiki/Address_space_layout_randomization


More information about the hotspot-runtime-dev mailing list