RFR(S): 8206459: [s390] Prevent restoring incorrect bcp and locals in interpreter and avoid incorrect size of partialSubtypeCheckNode in C2

Doerr, Martin martin.doerr at sap.com
Fri Jul 6 12:59:19 UTC 2018


TestInterfaceMethodSelection has shown a bug in the template interpreter on s390. Restore functions for locals (R12 = Z_tmp_3) and bcp (R13 = Z_tmp_4) are used without having saved the correct values.
In addition, C2 currently uses a constant size for partialSubtypeCheckNode which uses load_const_optimized with variable size.

We can simply preserve these 2 registers and remove the restore function calls. Webrev:

Please review.

Best regards,

More information about the hotspot-runtime-dev mailing list