RFR: 8256106: Bypass intrinsic/barrier when calling Reference.get() from Finalizer [v3]
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?
More information about the hotspot-gc-dev