提交 bbc9d454 编写于 作者: K kvn

6951686: Using large pages on Linux prevents zero based compressed oops

Summary: Use req_addr when attaching shared memory segment.
Reviewed-by: twisti
上级 46b23000
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册