RFR(S): 8159368: [JVMCI] SPARCHotSpotRegisterConfig.callingConvention gives incorrect calling convention for native calls containing fp args

Stefan Anzinger stefan.anzinger at oracle.com
Thu Jun 16 11:54:17 UTC 2016


we found a bug in the JVMCI defined SPARC calling convention when
calling native methods with single float arguments. Previously the
HotSpot Calling Convention was used, which is different to the one
defined in the native ABI [1].

This fix implements the correct native calling convention in the SPARC
ABI [1] in SPARCHotSpotRegisterConfig.java.

The rest of the change is a jtreg test which exercises native calls on
AMD64 and SPARC with code installed via JVMCI. Different parameter types
and argument counts are tested.


[1] http://sparc.org/wp-content/uploads/2014/01/SCD.2.4.1.pdf.gz


More information about the hotspot-compiler-dev mailing list