Mercurial > hg > graal-compiler
comparison src/cpu/x86/vm/assembler_x86.cpp @ 606: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 | 52a431267315 |
children | 56aae7be60d4 |
comparison
equal
deleted
inserted
replaced
605:98cb887364d3 | 606:19962e74284f |
---|---|
6461 andl(tmp, (os::vm_page_size() - sizeof(int))); | 6461 andl(tmp, (os::vm_page_size() - sizeof(int))); |
6462 | 6462 |
6463 Address index(noreg, tmp, Address::times_1); | 6463 Address index(noreg, tmp, Address::times_1); |
6464 ExternalAddress page(os::get_memory_serialize_page()); | 6464 ExternalAddress page(os::get_memory_serialize_page()); |
6465 | 6465 |
6466 movptr(ArrayAddress(page, index), tmp); | 6466 // Size of store must match masking code above |
6467 movl(as_Address(ArrayAddress(page, index)), tmp); | |
6467 } | 6468 } |
6468 | 6469 |
6469 // Calls to C land | 6470 // Calls to C land |
6470 // | 6471 // |
6471 // When entering C land, the rbp, & rsp of the last Java frame have to be recorded | 6472 // When entering C land, the rbp, & rsp of the last Java frame have to be recorded |