RFR: 8256106: Bypass intrinsic/barrier when calling Reference.get() from Finalizer [v3]

Roman Kennke rkennke at openjdk.java.net
Wed Nov 11 18:27:59 UTC 2020

On Wed, 11 Nov 2020 18:13:30 GMT, Albert Mingkun Yang <ayang at openjdk.org> wrote:

> With `getInactive`, is the null check, `if (finalizee != null` still needed?

Good point! I don't think it is. The GC should not clean the referent before we finalized it (or not at all), and no other code is clearing it either. Unfortunately, I just integrated this PR, do you think it'd be worth to open a follow-up issue?


PR: https://git.openjdk.java.net/jdk/pull/1140

More information about the hotspot-gc-dev mailing list