Integrated: 8371778: Make MallocMemorySummary::_snapshot a DeferredStatic

Johan Sjölen jsjolen at openjdk.org
Tue Nov 18 13:09:13 UTC 2025


On Wed, 12 Nov 2025 07:48:38 GMT, Johan Sjölen <jsjolen at openjdk.org> wrote:

> Hi,
> 
> This PR wraps the` MallocMemorySummary::_snapshot` in a `DeferredStatic`. This is not strictly necessary as MallocMemorySnapshot does not have a non-trivial constructor, but it does give us more consistency and does act as a safe guard for future changes. 
> 
> Testing: GHA

This pull request has now been integrated.

Changeset: 36b66e13
Author:    Johan Sjölen <jsjolen at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/36b66e13c8eca8e460bfd6d900f139408aff9d43
Stats:     5 lines in 2 files changed: 1 ins; 0 del; 4 mod

8371778: Make MallocMemorySummary::_snapshot a DeferredStatic

Reviewed-by: phubner, azafari

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

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


More information about the hotspot-runtime-dev mailing list