changeset 644:19962e74284f

6811384: MacroAssembler::serialize_memory may touch next page on amd64 Reviewed-by: kvn, phh, twisti
author never
date Sun, 01 Mar 2009 20:49:46 -0800
parents 98cb887364d3
children d8c7fa77a6dc
files src/cpu/x86/vm/assembler_x86.cpp
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/cpu/x86/vm/assembler_x86.cpp	Fri Feb 27 13:27:09 2009 -0800
+++ b/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