diff -r 1ea962cb6575 -r 7444101401b2 src/hotspot/share/classfile/javaClasses.hpp --- a/src/hotspot/share/classfile/javaClasses.hpp Wed Jan 17 22:24:46 2018 -0800 +++ b/src/hotspot/share/classfile/javaClasses.hpp Thu Jan 18 22:17:11 2018 -0500 @@ -921,6 +921,8 @@ static inline void set_discovered(oop ref, oop value); static inline void set_discovered_raw(oop ref, oop value); static inline HeapWord* discovered_addr_raw(oop ref); + static inline oop queue(oop ref); + static inline void set_queue(oop ref, oop value); static bool is_referent_field(oop obj, ptrdiff_t offset); static inline bool is_phantom(oop ref); }; @@ -944,6 +946,20 @@ static void serialize(SerializeClosure* f) NOT_CDS_RETURN; }; +// Interface to java.lang.ref.ReferenceQueue objects + +class java_lang_ref_ReferenceQueue: public AllStatic { +public: + static int static_NULL_queue_offset; + static int static_ENQUEUED_queue_offset; + + // Accessors + static oop NULL_queue(); + static oop ENQUEUED_queue(); + + static void compute_offsets(); +}; + // Interface to java.lang.invoke.MethodHandle objects class MethodHandleEntry;