RFR: 8283469: Don't use memset to initialize members in FileMapInfo and fix memory leak
Zhengyu Gu
zgu at openjdk.java.net
Mon Mar 28 12:31:46 UTC 2022
On Tue, 22 Mar 2022 05:12:57 GMT, Ioi Lam <iklam 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
>
>> 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`.
Thanks for the reviews, @iklam @kimbarrett
-------------
PR: https://git.openjdk.java.net/jdk/pull/7899
More information about the hotspot-runtime-dev
mailing list