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


Hello,

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.

https://bugs.openjdk.java.net/browse/JDK-8159368
http://cr.openjdk.java.net/~sanzinger/8159368/webrev.01/

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

Stefan


More information about the hotspot-compiler-dev mailing list