On Thu, 21 Nov 2024 18:02:24 GMT, Aleksey Shipilev <sh...@openjdk.org> wrote:

>> Doesn't it get covered by the local `prev` in `setup()`? Should that be 
>> removed?
>
> No. Local `prev` variable goes out of scope when `setup()` finishes, making 
> the whole thing eligible for GC. We need something that keeps the list alive, 
> like a benchmark object field, which `CleanerGC.prev` is.

Sorry for being dense, but where is a value being set to `CleanerGC.prev` ?

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/22043#discussion_r1852645989

Reply via email to