-
Type:
Enhancement
-
Resolution: Fixed
-
Priority:
P4
-
Affects Version/s: 22
-
Component/s: hotspot
-
b13
-
linux
| Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
|---|---|---|---|---|---|---|
| JDK-8373685 | 21.0.11 | Sergey Chernyshev | P4 | Resolved | Fixed | master |
os::attempt_reserve_memory_at() is used to map memory at a specific address that we fancy. It is not used to replace an existing mapping (hence we omit MAP_FIXED).
But it may result in the kernel creating a mapping at a different address if our wish address is blocked; we then have to unmap again. That mmap-munmap cycle is unnecessary.
MAP_FIXED_NOREPLACE has existed since Linux 4.17 and prevents that unnecessary cycle . We should use that if available.
But it may result in the kernel creating a mapping at a different address if our wish address is blocked; we then have to unmap again. That mmap-munmap cycle is unnecessary.
MAP_FIXED_NOREPLACE has existed since Linux 4.17 and prevents that unnecessary cycle . We should use that if available.
- backported by
-
JDK-8373685 [linux] mmap should use MAP_FIXED_NOREPLACE if available
-
- Resolved
-
- links to
-
Commit
openjdk/jdk/3699666c
-
Commit(master)
openjdk/jdk21u-dev/b17eef0f
-
Review
openjdk/jdk/15170
-
Review(master)
openjdk/jdk21u-dev/2476