RFR: 8371778: Make MallocMemorySummary::_snapshot a DeferredStatic

Paul Hübner phubner at openjdk.org
Fri Nov 14 08:25:20 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

Looks good, thanks.

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

Marked as reviewed by phubner (Author).

PR Review: https://git.openjdk.org/jdk/pull/28257#pullrequestreview-3463579387


More information about the hotspot-runtime-dev mailing list