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

Stefan Karlsson stefank at openjdk.org
Thu Jan 30 09:50:02 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.

Thanks for the reviews!

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

PR Comment: https://git.openjdk.org/jdk/pull/23299#issuecomment-2624000913


More information about the hotspot-runtime-dev mailing list