--- a/hotspot/src/cpu/x86/vm/assembler_x86.hpp Wed Apr 22 19:10:03 2015 +0300
+++ b/hotspot/src/cpu/x86/vm/assembler_x86.hpp Mon Apr 27 10:49:43 2015 +0200
@@ -142,8 +142,10 @@
#endif // _LP64
-// JSR 292 fixed register usages:
-REGISTER_DECLARATION(Register, rbp_mh_SP_save, rbp);
+// JSR 292
+// On x86, the SP does not have to be saved when invoking method handle intrinsics
+// or compiled lambda forms. We indicate that by setting rbp_mh_SP_save to noreg.
+REGISTER_DECLARATION(Register, rbp_mh_SP_save, noreg);
// Address is an abstraction used to represent a memory location
// using any of the amd64 addressing modes with one object.