RFR: 8318720: G1: Memory leak in G1CodeRootSet after JDK-8315503 [v3]
Thomas Schatzl
tschatzl at openjdk.org
Wed Oct 25 15:23:36 UTC 2023
On Wed, 25 Oct 2023 15:13:51 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
>
> Zhengyu Gu has updated the pull request incrementally with one additional commit since the last revision:
>
> Adopt Thomas' code
Lgtm :)
-------------
Marked as reviewed by tschatzl (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/16352#pullrequestreview-1697663397
More information about the hotspot-gc-dev
mailing list