8293295: Add type check asserts to java_lang_ref_Reference accessors

Reviewed-by: stefank, kbarrett, coleenp
This commit is contained in:
Axel Boldt-Christmas 2022-09-05 08:34:13 +00:00 committed by Stefan Karlsson
parent e945619ddd
commit 32f4dc8403
2 changed files with 14 additions and 0 deletions

View file

@ -988,6 +988,8 @@ class java_lang_ref_Reference: AllStatic {
static bool is_referent_field(oop obj, ptrdiff_t offset);
static inline bool is_final(oop ref);
static inline bool is_phantom(oop ref);
static inline bool is_weak(oop ref);
static inline bool is_soft(oop ref);
static int referent_offset() { CHECK_INIT(_referent_offset); }
static int queue_offset() { CHECK_INIT(_queue_offset); }