RFR: 8348647: CDS dumping commits 3GB when large pages are used

Ioi Lam iklam at openjdk.org
Wed Jan 29 20:17:47 UTC 2025


On Fri, 24 Jan 2025 13:34:18 GMT, Stefan Karlsson <stefank at openjdk.org> wrote:

> CDS inadvertently commits large pages when dumping and -XX:+UseLargePages is used. The fix is simply to use the memory reservation API that doesn't try to allocate large pages.
> 
> FWIW, In the future, as a separate RFE, I think that we should change the overloads so that the simplest overloaded function reserves memory without large pages.
> 
> I verified manually by looking at /proc/meminfo that we're not using large pages for the symbols after this change.

Marked as reviewed by iklam (Reviewer).

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

PR Review: https://git.openjdk.org/jdk/pull/23299#pullrequestreview-2582131913


More information about the hotspot-runtime-dev mailing list