6951686: Using large pages on Linux prevents zero based compressed oops
authorkvn
Mon May 17 11:32:56 2010 -0700 (3 years ago)
changeset 174779bf863697eb
parent 1732ef1a1d051971
child 1748bfe29ec02863
6951686: Using large pages on Linux prevents zero based compressed oops
Summary: Use req_addr when attaching shared memory segment.
Reviewed-by: twisti
src/os/linux/vm/os_linux.cpp
--- a/src/os/linux/vm/os_linux.cpp Wed May 12 22:06:02 2010 -0700
+++ b/src/os/linux/vm/os_linux.cpp Mon May 17 11:32:56 2010 -0700
@@ -2788,7 +2788,7 @@ char* os::reserve_memory_special(size_t
}
// 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