mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-21 19:44:41 +02:00
6716785: implicit null checks not triggering with CompressedOops
Allocate alignment-sized page(s) below java heap so that memory accesses at heap_base+1page give signal and cause an implicit null check Reviewed-by: kvn, jmasa, phh, jcoomes
This commit is contained in:
parent
575988272e
commit
20dba03e99
23 changed files with 197 additions and 133 deletions
|
@ -71,13 +71,8 @@ bool PSVirtualSpace::contains(void* p) const {
|
|||
|
||||
void PSVirtualSpace::release() {
|
||||
DEBUG_ONLY(PSVirtualSpaceVerifier this_verifier(this));
|
||||
if (reserved_low_addr() != NULL) {
|
||||
if (special()) {
|
||||
os::release_memory_special(reserved_low_addr(), reserved_size());
|
||||
} else {
|
||||
(void)os::release_memory(reserved_low_addr(), reserved_size());
|
||||
}
|
||||
}
|
||||
// This may not release memory it didn't reserve.
|
||||
// Use rs.release() to release the underlying memory instead.
|
||||
_reserved_low_addr = _reserved_high_addr = NULL;
|
||||
_committed_low_addr = _committed_high_addr = NULL;
|
||||
_special = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue