[jdk18u] Integrated: 8283469: Don't use memset to initialize members in FileMapInfo and fix memory leak
Zhengyu Gu
zgu at openjdk.java.net
Mon May 16 12:57:13 UTC 2022
On Mon, 11 Apr 2022 18:13:17 GMT, Zhengyu Gu <zgu at openjdk.org> wrote:
> I would like to backport this patch to 18u, to fix a memory leak, also eliminates dangerous `memset` call, could potentially result in fatal crash.
>
> The original patch does not apply cleanly, due to JDK-8261455, where it changed `FileMapInfo`'s constructor signature to pass in `full_path` as a parameter. The conflict is resolved manually by initializing `_full_path` to `nullptr`
>
> Test:
>
> - [x] hotspot_cds
This pull request has now been integrated.
Changeset: 642208c3
Author: Zhengyu Gu <zgu at openjdk.org>
URL: https://git.openjdk.java.net/jdk18u/commit/642208c3781a923688ee8df0cb392c5990ef56e2
Stats: 13 lines in 1 file changed: 8 ins; 2 del; 3 mod
8283469: Don't use memset to initialize members in FileMapInfo and fix memory leak
Reviewed-by: phh
Backport-of: d6fa8b004bcd0a2fc1015055d0177428889b4c31
-------------
PR: https://git.openjdk.java.net/jdk18u/pull/97
More information about the jdk-updates-dev
mailing list