RFR: 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

Thanks!

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

PR Comment: https://git.openjdk.org/jdk/pull/28257#issuecomment-3547565038


More information about the hotspot-runtime-dev mailing list