RFR: 8271862: C2 intrinsic for Reference.refersTo() is often not used [v2]
Per Liden
pliden at openjdk.java.net
Tue Aug 10 09:00:00 UTC 2021
On Mon, 9 Aug 2021 19:59:21 GMT, Vladimir Ivanov <vlivanov at openjdk.org> wrote:
>> Per Liden has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Private implies final
>
> src/java.base/share/classes/java/lang/ref/Reference.java line 379:
>
>> 377:
>> 378: @IntrinsicCandidate
>> 379: private native final boolean refersTo0(Object o);
>
> No need to have it both `private` and `final`. Just `private` should be enough.
Good point. Fixed.
-------------
PR: https://git.openjdk.java.net/jdk/pull/5052
More information about the hotspot-compiler-dev
mailing list