RFR: 8283469: Don't use memset to initialize members in FileMapInfo and fix memory leak

Ioi Lam iklam at openjdk.java.net
Tue Mar 22 05:17:35 UTC 2022


On Tue, 22 Mar 2022 02:58:15 GMT, David Holmes <dholmes at openjdk.org> wrote:

> Isn't this one of the things we have to guarantee was zeroed at initialization to produce deterministic shared archive contents?
> 
> David

`FileMapInfo` is derived from `CHeapObj<mtInternal>` so it's allocated by os::malloc, which zeros the memory when `DumpSharedSpaces == true`.

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

PR: https://git.openjdk.java.net/jdk/pull/7899


More information about the hotspot-runtime-dev mailing list