RFR: 8223089: Stack alignment for x86-32
Andrew Haley
aph at redhat.com
Fri May 3 07:49:03 UTC 2019
On 5/2/19 12:32 PM, Florian Weimer wrote:
> If you want to compile Hotspot with SSE2, you will have to realign the
> stack when JNI code calls back into Hotspot. Otherwose, you lose
> support for legacy JNI libraries which do not preserve stack alignment
> (as required after that silent ABI bump).
I'm surprised that's a problem, really.
> Supporting such legacy code is the reason why the system libraries in
> our distribution do not require stack realignment on i386, so compiling
> Hotspot without SSE2 would also avoid the problem there, even if Hotspot
> code calls such function such as malloc in response to requests from JNI
> code.
What about other distros, though? Aren't we just playing with fire?
--
Andrew Haley
Java Platform Lead Engineer
Red Hat UK Ltd. <https://www.redhat.com>
EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671
More information about the hotspot-dev
mailing list