mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
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:
parent
ba721f5f2f
commit
675d1d56e6
7 changed files with 22 additions and 23 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue