RFR: 8188055: (ref) Add Reference::refersTo predicate [v6]

Kim Barrett kbarrett at openjdk.java.net
Wed Nov 4 09:38:00 UTC 2020


On Wed, 4 Nov 2020 09:31:13 GMT, Tagir F. Valeev <tvaleev at openjdk.org> wrote:

>> The API looks good, thanks for getting this in.
>
> Hello!
> 
> As an IDE developer, I'm thinking about IDE inspection that may suggest the new method. My idea is to suggest replacing every `ref.get() == obj` with `ref.refersTo(obj)`. Is this a good idea or there are cases when `ref.get() == obj` could be preferred? What do you think?

Thanks to a whole host of folks for reviews and comments.

-------------

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


More information about the hotspot-dev mailing list