8256516: Simplify clearing References

Provide and use explicit referent clearing instead of set to null.

Reviewed-by: rkennke, shade, pliden, mchung
This commit is contained in:
Kim Barrett 2020-11-19 15:42:46 +00:00
parent ba721f5f2f
commit 675d1d56e6
7 changed files with 22 additions and 23 deletions

View file

@ -875,7 +875,7 @@ class java_lang_ref_Reference: AllStatic {
static inline oop weak_referent_no_keepalive(oop ref);
static inline oop phantom_referent_no_keepalive(oop ref);
static inline oop unknown_referent_no_keepalive(oop ref);
static inline void set_referent_raw(oop ref, oop value);
static inline void clear_referent(oop ref);
static inline HeapWord* referent_addr_raw(oop ref);
static inline oop next(oop ref);
static inline void set_next(oop ref, oop value);