RFR: 8256516: Simplify clearing References

Roman Kennke rkennke at openjdk.java.net
Wed Nov 18 10:13:04 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

Looks good to me! Thanks!

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

Marked as reviewed by rkennke (Reviewer).

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


More information about the hotspot-dev mailing list