8140611: aarch64: jtreg test jdk/tools/pack200/UnpackerMemoryTest.java SEGVs
Summary: Fix register usage on calling native synchronized methods
Reviewed-by: kvn, adinn
--- a/hotspot/src/cpu/aarch64/vm/sharedRuntime_aarch64.cpp Tue Oct 27 10:08:48 2015 +0000
+++ b/hotspot/src/cpu/aarch64/vm/sharedRuntime_aarch64.cpp Tue Oct 27 18:05:20 2015 +0000
@@ -1777,7 +1777,7 @@
const Register obj_reg = r19; // Will contain the oop
const Register lock_reg = r13; // Address of compiler lock object (BasicLock)
const Register old_hdr = r13; // value of old header at unlock time
- const Register tmp = c_rarg3;
+ const Register tmp = lr;
Label slow_path_lock;
Label lock_done;