r/java • u/woj-tek • Sep 30 '26
OpenJDK vs. GraalVM vs. Eclipse Temurin vs. Semeru Java Performance
https://www.phoronix.com/review/openjdk-graalvm-temurin-semeru/
63
Upvotes
r/java • u/woj-tek • Sep 30 '26
View all comments
Show parent comment
0
u/kit89 Oct 03 '26 edited Oct 03 '26
JITed code still has to run within the VM it's bounded to. Memory management is still handled by the VM.
Your argument would suggest that a VM compiled to 32-bit x86, would be able to JIT to x64 and gain access to registers and manage 64bit pointers while running in a process restricted to 32-bit mode, but it's fine cause the CPU is x64?
As far as I am aware the VM and Hotspot do not jump through those hopes. A 32bit x86 VM will JIT using only the functionality of 32bit x86 architecture.
A compiler can compile to a different architecture, that's fine, but the compiler doesn't have to run the code afterwards.