RFR: 8285364: Remove REF_ enum for java.lang.ref.Reference [v3]
Coleen Phillimore
coleenp at openjdk.java.net
Mon Apr 25 15:55:26 UTC 2022
On Fri, 22 Apr 2022 09:43:45 GMT, Albert Mingkun Yang <ayang at openjdk.org> wrote:
>> Simple rename and some comments update.
>>
>> Test: build
>
> Albert Mingkun Yang has updated the pull request incrementally with one additional commit since the last revision:
>
> Remove REF_ enum for java.lang.ref.Reference
>
> Signed-off-by: Albert Yang <albert.m.yang at oracle.com>
src/hotspot/share/oops/instanceKlass.cpp line 441:
> 439:
> 440: // Allocation
> 441: if (parser.is_java_lang_ref_Reference_subclass()) {
I'm having a really hard time understanding this. java.lang.Reference now doesn't have any REF_OTHER type set. I didn't realize that a java.lang.Reference instance is a plain InstanceKlass, and not an InstanceRefKlass. Is this right?
-------------
PR: https://git.openjdk.java.net/jdk/pull/8332
More information about the serviceability-dev
mailing list