On 27/10/15 20:36, Martin Buchholz wrote: > The world would be a better place if the current x86 32-bit ABI was > replaced by "x32" > https://en.wikipedia.org/wiki/X32_ABI > but it's looking unlikely that we will get there. For starters, all > compilers must be rewritten to target x32, and that includes the jdk > jits.
No they wouldn't. The jits don't have to be changed at all because we already can handle compressed OOPs with no shift or base offset, i.e. native 32-bit addresses. The Java calling convention would therefore stay as it is. All that would have to be changed is the native <-> Java interfaces and accesses to native pointer-sized fields in C++ structures. It's not trivial, but neither is it a rewrite. Andrew.