RFR: 8348647: CDS dumping commits 3GB when large pages are used
Stefan Karlsson
stefank at openjdk.org
Wed Jan 29 08:36:48 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, 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.
@iklam @calvinccheung Are you OK with this change?
-------------
PR Comment: https://git.openjdk.org/jdk/pull/23299#issuecomment-2620988208
More information about the hotspot-runtime-dev
mailing list