6811384: MacroAssembler::serialize_memory may touch next page on amd64

Sun, 01 Mar 2009 20:49:46 -0800

author
never
date
Sun, 01 Mar 2009 20:49:46 -0800
changeset 1041
19962e74284f
parent 1040
98cb887364d3
child 1042
d8c7fa77a6dc

6811384: MacroAssembler::serialize_memory may touch next page on amd64
Reviewed-by: kvn, phh, twisti

src/cpu/x86/vm/assembler_x86.cpp file | annotate | diff | comparison | revisions
     1.1 --- a/src/cpu/x86/vm/assembler_x86.cpp	Fri Feb 27 13:27:09 2009 -0800
     1.2 +++ b/src/cpu/x86/vm/assembler_x86.cpp	Sun Mar 01 20:49:46 2009 -0800
     1.3 @@ -6463,7 +6463,8 @@
     1.4    Address index(noreg, tmp, Address::times_1);
     1.5    ExternalAddress page(os::get_memory_serialize_page());
     1.6  
     1.7 -  movptr(ArrayAddress(page, index), tmp);
     1.8 +  // Size of store must match masking code above
     1.9 +  movl(as_Address(ArrayAddress(page, index)), tmp);
    1.10  }
    1.11  
    1.12  // Calls to C land

mercurial