RFR: 8318720: G1: Memory leak in G1CodeRootSet after JDK-8315503 [v3]
Zhengyu Gu
zgu at openjdk.org
Wed Oct 25 15:13:52 UTC 2023
On Wed, 25 Oct 2023 14:51:06 GMT, Thomas Schatzl <tschatzl at openjdk.org> wrote:
>> I would strongly prefer something like [this](https://github.com/openjdk/jdk/commit/521b66294bc22e7c0760c60e7ce2f1ce31347fc3) after some "worrying about the refactoring" ;)
>> Passes gc/g1 testing.
>
> It's small enough to copy it in here:
>
> void clear() {
> // Remove all entries.
> auto always_true = [] (nmethod** value) {
> return true;
> };
>
> clean(always_true);
> }
Ah, I was confused by `_table.clean()` and could not find `clean()` in CHT. Updated.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/16352#discussion_r1371930031
More information about the hotspot-gc-dev
mailing list