From bbc9d4540b39cd4f96a1720d7cb48c71ee300345 Mon Sep 17 00:00:00 2001 From: kvn Date: Mon, 17 May 2010 11:32:56 -0700 Subject: [PATCH] 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/os/linux/vm/os_linux.cpp b/src/os/linux/vm/os_linux.cpp index 4dfcff7b6..07a672d4e 100644 --- a/src/os/linux/vm/os_linux.cpp +++ b/src/os/linux/vm/os_linux.cpp @@ -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 -- GitLab