RFR: 8293295: Add type check asserts to java_lang_ref_Reference accessors [v2]
Axel Boldt-Christmas
aboldtch at openjdk.org
Fri Sep 2 08:21:11 UTC 2022
On Fri, 2 Sep 2022 07:54:49 GMT, Stefan Karlsson <stefank at openjdk.org> wrote:
> Given that "!is_phantom" returns true for FinalReferences, maybe we should change this to explicitly check if the ref is Weak or Soft?
Added `is_weak` and `is_soft` to make it more correct with respect to `FinalReference`. This will also be more correct if a `REF_NONE` ever finds its way into these accessors.
-------------
PR: https://git.openjdk.org/jdk/pull/10139
More information about the hotspot-runtime-dev
mailing list