RFR: 8256516: Simplify clearing References

Aleksey Shipilev shade at openjdk.java.net
Thu Nov 19 08:04:01 UTC 2020


On Wed, 18 Nov 2020 09:53:11 GMT, Kim Barrett <kbarrett at openjdk.org> wrote:

> Please review this simplification of jlr.Reference clearing by VM code.
> 
> The function java_lang_ref_Reference::set_referent_raw was being used to
> clear the referent of Reference objects, and only for that purpose.  This
> change replaces that function with java_lang_ref_Reference::clear_referent,
> which is much more obvious in intent.  That change is then percolated up
> through callers in the obvious way.
> 
> Testing:
> mach5 tier1

Marked as reviewed by shade (Reviewer).

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

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


More information about the hotspot-dev mailing list