mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 19:44:41 +02:00
6783381: NUMA allocator: don't pretouch eden space with UseNUMA
Moved pretouching to MutableSpace. Also MutableSpace now turns on page interleaving for the region it covers. Reviewed-by: jmasa, jcoomes
This commit is contained in:
parent
f031c45430
commit
da292a7197
8 changed files with 135 additions and 59 deletions
|
@ -78,7 +78,7 @@ void PSVirtualSpace::release() {
|
|||
_special = false;
|
||||
}
|
||||
|
||||
bool PSVirtualSpace::expand_by(size_t bytes, bool pre_touch) {
|
||||
bool PSVirtualSpace::expand_by(size_t bytes) {
|
||||
assert(is_aligned(bytes), "arg not aligned");
|
||||
DEBUG_ONLY(PSVirtualSpaceVerifier this_verifier(this));
|
||||
|
||||
|
@ -92,15 +92,6 @@ bool PSVirtualSpace::expand_by(size_t bytes, bool pre_touch) {
|
|||
_committed_high_addr += bytes;
|
||||
}
|
||||
|
||||
if (pre_touch || AlwaysPreTouch) {
|
||||
for (char* curr = base_addr;
|
||||
curr < _committed_high_addr;
|
||||
curr += os::vm_page_size()) {
|
||||
char tmp = *curr;
|
||||
*curr = 0;
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
@ -255,7 +246,7 @@ PSVirtualSpaceHighToLow::PSVirtualSpaceHighToLow(ReservedSpace rs) {
|
|||
DEBUG_ONLY(verify());
|
||||
}
|
||||
|
||||
bool PSVirtualSpaceHighToLow::expand_by(size_t bytes, bool pre_touch) {
|
||||
bool PSVirtualSpaceHighToLow::expand_by(size_t bytes) {
|
||||
assert(is_aligned(bytes), "arg not aligned");
|
||||
DEBUG_ONLY(PSVirtualSpaceVerifier this_verifier(this));
|
||||
|
||||
|
@ -269,15 +260,6 @@ bool PSVirtualSpaceHighToLow::expand_by(size_t bytes, bool pre_touch) {
|
|||
_committed_low_addr -= bytes;
|
||||
}
|
||||
|
||||
if (pre_touch || AlwaysPreTouch) {
|
||||
for (char* curr = base_addr;
|
||||
curr < _committed_high_addr;
|
||||
curr += os::vm_page_size()) {
|
||||
char tmp = *curr;
|
||||
*curr = 0;
|
||||
}
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue