Integrated: 8318720: G1: Memory leak in G1CodeRootSet after JDK-8315503
Zhengyu Gu
zgu at openjdk.org
Wed Oct 25 23:50:50 UTC 2023
On Tue, 24 Oct 2023 23:04:28 GMT, Zhengyu Gu <zgu at openjdk.org> wrote:
> Calling `ConcurrentHashTable:table.unsafe_reset()` in `G1CodeRootSet::clear()` does not free the entries that still in the table. This patch empties the table before the `unsafe_reset()` call to avoid memory leak.
>
> Test:
> tier1 and tier2 (fastdebug and release) on Linux x86_64
This pull request has now been integrated.
Changeset: 811b436e
Author: Zhengyu Gu <zgu at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/811b436e5de972bedd3a0fa25952b2e1beddd9c3
Stats: 5 lines in 1 file changed: 3 ins; 0 del; 2 mod
8318720: G1: Memory leak in G1CodeRootSet after JDK-8315503
Reviewed-by: tschatzl
-------------
PR: https://git.openjdk.org/jdk/pull/16352
More information about the hotspot-gc-dev
mailing list