6951686: Using large pages on Linux prevents zero based compressed oops
authorkvn
Mon, 17 May 2010 11:32:56 -0700
changeset 5532 34c4ef11dbed
parent 5428 246270dac59d
child 5533 e8d9ff82ec62
6951686: Using large pages on Linux prevents zero based compressed oops Summary: Use req_addr when attaching shared memory segment. Reviewed-by: twisti
hotspot/src/os/linux/vm/os_linux.cpp
--- a/hotspot/src/os/linux/vm/os_linux.cpp	Wed May 12 22:06:02 2010 -0700
+++ b/hotspot/src/os/linux/vm/os_linux.cpp	Mon May 17 11:32:56 2010 -0700
@@ -2788,7 +2788,7 @@
   }
 
   // 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