6811384: MacroAssembler::serialize_memory may touch next page on amd64
authornever
Sun, 01 Mar 2009 20:49:46 -0800
changeset 2132 e89cc51648ea
parent 2131 98f9cef66a34
child 2133 30b3986c8150
6811384: MacroAssembler::serialize_memory may touch next page on amd64 Reviewed-by: kvn, phh, twisti
hotspot/src/cpu/x86/vm/assembler_x86.cpp
--- a/hotspot/src/cpu/x86/vm/assembler_x86.cpp	Fri Feb 27 13:27:09 2009 -0800
+++ b/hotspot/src/cpu/x86/vm/assembler_x86.cpp	Sun Mar 01 20:49:46 2009 -0800
@@ -6463,7 +6463,8 @@
   Address index(noreg, tmp, Address::times_1);
   ExternalAddress page(os::get_memory_serialize_page());
 
-  movptr(ArrayAddress(page, index), tmp);
+  // Size of store must match masking code above
+  movl(as_Address(ArrayAddress(page, index)), tmp);
 }
 
 // Calls to C land