[jdk21u-dev] RFR: 8315923: pretouch_memory by atomic-add-0 fragments huge pages unexpectedly

Aleksey Shipilev shade at openjdk.org
Tue Jul 9 10:55:33 UTC 2024


On Fri, 5 Jul 2024 08:55:58 GMT, Liming Liu <lliu at openjdk.org> wrote:

> This pull request ports JDK-8315923 back to JDK-21, as JDK-21 still uses atomic-add-0 to pretouch memory and results fragmented huge pages. This backport has the following differences from its original version:
> 
> - TestTransparentHugePageUsage.java gets deleted as it was deleted in JDK-8324776;
> - nullptr is adopted in pretouch_thp_and_use_concurrent, as it is a part of  JDK-8327171;
> - JDK-8324781 is included, as JDK-8324781 only makes changes to testcases.

All right, this makes sense, thanks!

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

Marked as reviewed by shade (Reviewer).

PR Review: https://git.openjdk.org/jdk21u-dev/pull/825#pullrequestreview-2165943206


More information about the jdk-updates-dev mailing list