6811384: MacroAssembler::serialize_memory may touch next page on amd64
Reviewed-by: kvn, phh, twisti
--- 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