[jdk21u-dev] RFR: 8313319: [linux] mmap should use MAP_FIXED_NOREPLACE if available [v2]

duke duke at openjdk.org
Mon Dec 15 11:05:49 UTC 2025


On Mon, 17 Nov 2025 12:50:54 GMT, Sergey Chernyshev <schernyshev at openjdk.org> wrote:

>> Hi all,
>> 
>> Please review the backport of JDK-8313319 that prevents unnecessary mmap-munmap cycle in systems that do not honor the address hint when mmapping memory without MAP_FIXED. Please see more details in #2475. ~~This is (almost) a clean backport, with only a minor context conflict due to JDK-8315923 hasn't been backported to JDK 21.~~
>> 
>> UPD: Apart from a minor context issue related to JDK-8315923, there was a second definition of MAP_FIXED_NOREPLACE, introduced by [JDK-8330520](https://github.com/openjdk/jdk21u/commit/fee209491beb07c09119a81c78d86d455c79c58b) backport.
>> 
>> Testing:
>> 
>> - jtreg standard test groups passed
>> - gtests passed (aarch64 & amd64)
>
> Sergey Chernyshev has updated the pull request incrementally with one additional commit since the last revision:
> 
>   fix the double definition that came from 8330520

@sercher 
Your change (at version 15e6daac1457abc02bd6b8d63e9b70a2a26f5b60) is now ready to be sponsored by a Committer.

-------------

PR Comment: https://git.openjdk.org/jdk21u-dev/pull/2476#issuecomment-3655034203


More information about the jdk-updates-dev mailing list