[jdk11u-dev] RFR: 8234930: Use MAP_JIT when allocating pages for code cache on macOS [v6]

Thomas Stuefe stuefe at openjdk.java.net
Thu Dec 9 13:25:08 UTC 2021


On Thu, 9 Dec 2021 12:23:34 GMT, Vladimir Kempik <vkempik at openjdk.org> wrote:

>> Hello, here is alternative backport of 8234930 to jdk11u.
>> Very minimalistic change for platforms other than macos, just one unused argument.
>> We have used this patch in zulu11 for more than a year now and found no issues with it on macos and other platforms.
>>
>> Technically it's mostly the same as previous (3patch) version but has no prerequests.
>
> Vladimir Kempik has updated the pull request incrementally with one additional commit since the last revision:
>
>   Add a comment into os_bsd

src/hotspot/os/bsd/os_bsd.cpp line 2118:

> 2116:
> 2117: MACOS_ONLY(bool os::pd_uncommit_memory(char* addr, size_t size, bool executable))
> 2118: NOT_MACOS(bool os::pd_uncommit_memory(char* addr, size_t size)) {

Out of curiosity, did you try and build BSD? Does anyone? Or does it just quietly bitrot away?

At some point maybe the delta between BSD and MacOS are large enough to split the bases (and maybe retire BSD unless someone maintains it)

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

PR: https://git.openjdk.java.net/jdk11u-dev/pull/710



More information about the jdk-updates-dev mailing list