< prev index next >

src/hotspot/share/classfile/javaClasses.hpp

Print this page




 895   static int queue_offset;
 896   static int next_offset;
 897   static int discovered_offset;
 898 
 899   // Accessors
 900   static inline oop referent(oop ref);
 901   static inline void set_referent(oop ref, oop value);
 902   static inline void set_referent_raw(oop ref, oop value);
 903   static inline HeapWord* referent_addr_raw(oop ref);
 904   static inline oop next(oop ref);
 905   static inline void set_next(oop ref, oop value);
 906   static inline void set_next_raw(oop ref, oop value);
 907   static inline HeapWord* next_addr_raw(oop ref);
 908   static inline oop discovered(oop ref);
 909   static inline void set_discovered(oop ref, oop value);
 910   static inline void set_discovered_raw(oop ref, oop value);
 911   static inline HeapWord* discovered_addr_raw(oop ref);
 912   static inline oop queue(oop ref);
 913   static inline void set_queue(oop ref, oop value);
 914   static bool is_referent_field(oop obj, ptrdiff_t offset);

 915   static inline bool is_phantom(oop ref);
 916 };
 917 
 918 
 919 // Interface to java.lang.ref.SoftReference objects
 920 
 921 class java_lang_ref_SoftReference: public java_lang_ref_Reference {
 922  public:
 923   static int timestamp_offset;
 924   static int static_clock_offset;
 925 
 926   // Accessors
 927   static jlong timestamp(oop ref);
 928 
 929   // Accessors for statics
 930   static jlong clock();
 931   static void set_clock(jlong value);
 932 
 933   static void compute_offsets();
 934   static void serialize_offsets(SerializeClosure* f) NOT_CDS_RETURN;




 895   static int queue_offset;
 896   static int next_offset;
 897   static int discovered_offset;
 898 
 899   // Accessors
 900   static inline oop referent(oop ref);
 901   static inline void set_referent(oop ref, oop value);
 902   static inline void set_referent_raw(oop ref, oop value);
 903   static inline HeapWord* referent_addr_raw(oop ref);
 904   static inline oop next(oop ref);
 905   static inline void set_next(oop ref, oop value);
 906   static inline void set_next_raw(oop ref, oop value);
 907   static inline HeapWord* next_addr_raw(oop ref);
 908   static inline oop discovered(oop ref);
 909   static inline void set_discovered(oop ref, oop value);
 910   static inline void set_discovered_raw(oop ref, oop value);
 911   static inline HeapWord* discovered_addr_raw(oop ref);
 912   static inline oop queue(oop ref);
 913   static inline void set_queue(oop ref, oop value);
 914   static bool is_referent_field(oop obj, ptrdiff_t offset);
 915   static inline bool is_final(oop ref);
 916   static inline bool is_phantom(oop ref);
 917 };
 918 
 919 
 920 // Interface to java.lang.ref.SoftReference objects
 921 
 922 class java_lang_ref_SoftReference: public java_lang_ref_Reference {
 923  public:
 924   static int timestamp_offset;
 925   static int static_clock_offset;
 926 
 927   // Accessors
 928   static jlong timestamp(oop ref);
 929 
 930   // Accessors for statics
 931   static jlong clock();
 932   static void set_clock(jlong value);
 933 
 934   static void compute_offsets();
 935   static void serialize_offsets(SerializeClosure* f) NOT_CDS_RETURN;


< prev index next >