Integrated: JDK-8317772: NMT: Make peak values available in release builds

Thomas Stuefe stuefe at openjdk.org
Thu Oct 12 14:28:02 UTC 2023


On Tue, 10 Oct 2023 12:18:15 GMT, Thomas Stuefe <stuefe at openjdk.org> wrote:

> We added peak counts to NMT with [JDK-8297958](https://bugs.openjdk.org/browse/JDK-8297958). That feature is *extremely* helpful in analyzing native memory footprints since it gives you a glance into the past. For instance, it makes libc memory retention easier to explain.
> 
> Initially, I restricted this feature to debug JVMs out of vague concerns about performance when running with NMT. However, after measuring, it turns out that the increase in cost is very small. This makes sense since we only update the peak values when we actually reach a peak. 
> 
> Since the payoff is huge, it makes sense to have this feature always enabled. We don't need a new switch for that. As a side effect, NMT code becomes a bit clearer since we can lose a number of assert ifdefs.

This pull request has now been integrated.

Changeset: 32ccf018
Author:    Thomas Stuefe <stuefe at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/32ccf018eb32726e60126dcfd69d1be9ac80ec42
Stats:     13 lines in 3 files changed: 0 ins; 7 del; 6 mod

8317772: NMT: Make peak values available in release builds

Reviewed-by: jsjolen, zgu

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

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


More information about the hotspot-runtime-dev mailing list