mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
6951686: Using large pages on Linux prevents zero based compressed oops
Use req_addr when attaching shared memory segment. Reviewed-by: twisti
This commit is contained in:
parent
44f4fafdee
commit
85854f0e13
1 changed files with 1 additions and 1 deletions
|
@ -2788,7 +2788,7 @@ char* os::reserve_memory_special(size_t bytes, char* req_addr, bool exec) {
|
|||
}
|
||||
|
||||
// attach to the region
|
||||
addr = (char*)shmat(shmid, NULL, 0);
|
||||
addr = (char*)shmat(shmid, req_addr, 0);
|
||||
int err = errno;
|
||||
|
||||
// Remove shmid. If shmat() is successful, the actual shared memory segment
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue