RFR: Store cpu features in AOTCodeCache header

Ashutosh Mehra asmehra at openjdk.org
Mon Jul 7 16:51:04 UTC 2025


On Mon, 7 Jul 2025 16:18:05 GMT, Jan Kratochvil <jkratochvil at openjdk.org> wrote:

>> Could you provide more detail about your statement "some features presence affect ABI of the JIT-compiled code"?
>
> Simply said if you store the compiled Java code on old CPU (almost no features) and then run it on new CPU (full features) then it will crash. It crashes when a newly compiled code calls the restored code or vice versa. If you disagree I can try to reproduce with Leyden, it was happening with CRaC.

@jankratochvil thanks for sharing your experience. It would be great if you can provide a reproducer.

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

PR Review Comment: https://git.openjdk.org/leyden/pull/84#discussion_r2190621128


More information about the leyden-dev mailing list