8072129: [AARCH64] missing fix for 8066900
authorenevill
Mon, 02 Feb 2015 11:29:37 -0800
changeset 29189 9252ebf92115
parent 29188 b40701883668
child 29190 9917b8aed927
8072129: [AARCH64] missing fix for 8066900 Summary: add 8066900 fix to arm64 code. Reviewed-by: kvn
hotspot/src/cpu/aarch64/vm/c1_Runtime1_aarch64.cpp
--- a/hotspot/src/cpu/aarch64/vm/c1_Runtime1_aarch64.cpp	Tue Jan 27 20:49:11 2015 +0100
+++ b/hotspot/src/cpu/aarch64/vm/c1_Runtime1_aarch64.cpp	Mon Feb 02 11:29:37 2015 -0800
@@ -376,7 +376,7 @@
   case handle_exception_nofpu_id:
   case handle_exception_id:
     // At this point all registers MAY be live.
-    oop_map = save_live_registers(sasm, id == handle_exception_nofpu_id);
+    oop_map = save_live_registers(sasm, id != handle_exception_nofpu_id);
     break;
   case handle_exception_from_callee_id: {
     // At this point all registers except exception oop (r0) and
@@ -440,7 +440,7 @@
   case handle_exception_nofpu_id:
   case handle_exception_id:
     // Restore the registers that were saved at the beginning.
-    restore_live_registers(sasm, id == handle_exception_nofpu_id);
+    restore_live_registers(sasm, id != handle_exception_nofpu_id);
     break;
   case handle_exception_from_callee_id:
     // Pop the return address since we are possibly changing SP (restoring from BP).