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:
Vladimir Kozlov 2010-05-17 11:32:56 -07:00
parent 44f4fafdee
commit 85854f0e13

View File

@ -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