Integrated: 8348647: CDS dumping commits 3GB when large pages are used
Stefan Karlsson
stefank at openjdk.org
Thu Jan 30 09:50:03 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.
This pull request has now been integrated.
Changeset: f81772a4
Author: Stefan Karlsson <stefank at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/f81772a49ebfa197bac7bf05cf7d468d819f742a
Stats: 4 lines in 1 file changed: 3 ins; 0 del; 1 mod
8348647: CDS dumping commits 3GB when large pages are used
Reviewed-by: aboldtch, iklam
-------------
PR: https://git.openjdk.org/jdk/pull/23299
More information about the hotspot-runtime-dev
mailing list