RFR: 8321529: log_on_large_pages_failure reports log_debug(gc, heap, coops) for ReservedCodeSpace failures

Stefan Karlsson stefank at openjdk.org
Fri Jan 24 11:35:19 UTC 2025


The code path that we use to reserve memory is generic and used by various paths in the JVM, but we log messages about failures to reserve large pages on the 'gc, heap, coops' tag set. This is confusing, so I propose to log this on 'os, map' instead. We already use that tag set to log memory reservation, so I think that's a decent tag set to use.

While doing this change I also added some extra info about the area that we tried to reserve and commit.

A couple of G1 tests had to be tweaked.

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

Commit messages:
 - log_on_large_pages_failure reports log_debug(gc, heap, coops) for ReservedCodeSpace failures

Changes: https://git.openjdk.org/jdk/pull/23297/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=23297&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8321529
  Stats: 20 lines in 3 files changed: 8 ins; 0 del; 12 mod
  Patch: https://git.openjdk.org/jdk/pull/23297.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/23297/head:pull/23297

PR: https://git.openjdk.org/jdk/pull/23297


More information about the hotspot-dev mailing list