hotspot/src/cpu/x86/vm/x86_64.ad
changeset 33188 6d91a3077eca
parent 33160 c59f1676d27e
child 33465 6063f28a6efb
--- a/hotspot/src/cpu/x86/vm/x86_64.ad	Thu Oct 15 11:20:04 2015 +0000
+++ b/hotspot/src/cpu/x86/vm/x86_64.ad	Thu Oct 15 17:38:41 2015 +0200
@@ -867,7 +867,11 @@
     st->print("movq    [rsp + #%d], rbp\t# Save rbp",framesize);
     if (PreserveFramePointer) {
       st->print("\n\t");
-      st->print("movq    rbp, [rsp + #%d]\t# Save the caller's SP into rbp", (framesize + wordSize));
+      st->print("movq    rbp, rsp\t# Save the caller's SP into rbp");
+      if (framesize > 0) {
+        st->print("\n\t");
+        st->print("addq    rbp, #%d", framesize);
+      }      
     }
   }