equal
deleted
inserted
replaced
884 hc_referent_offset = 0, |
884 hc_referent_offset = 0, |
885 hc_queue_offset = 1, |
885 hc_queue_offset = 1, |
886 hc_next_offset = 2, |
886 hc_next_offset = 2, |
887 hc_discovered_offset = 3 // Is not last, see SoftRefs. |
887 hc_discovered_offset = 3 // Is not last, see SoftRefs. |
888 }; |
888 }; |
889 enum { |
|
890 hc_static_lock_offset = 0, |
|
891 hc_static_pending_offset = 1 |
|
892 }; |
|
893 |
889 |
894 static int referent_offset; |
890 static int referent_offset; |
895 static int queue_offset; |
891 static int queue_offset; |
896 static int next_offset; |
892 static int next_offset; |
897 static int discovered_offset; |
893 static int discovered_offset; |
898 static int static_lock_offset; |
|
899 static int static_pending_offset; |
|
900 static int number_of_fake_oop_fields; |
894 static int number_of_fake_oop_fields; |
901 |
895 |
902 // Accessors |
896 // Accessors |
903 static inline oop referent(oop ref); |
897 static inline oop referent(oop ref); |
904 static inline void set_referent(oop ref, oop value); |
898 static inline void set_referent(oop ref, oop value); |
910 static inline HeapWord* next_addr(oop ref); |
904 static inline HeapWord* next_addr(oop ref); |
911 static inline oop discovered(oop ref); |
905 static inline oop discovered(oop ref); |
912 static inline void set_discovered(oop ref, oop value); |
906 static inline void set_discovered(oop ref, oop value); |
913 static inline void set_discovered_raw(oop ref, oop value); |
907 static inline void set_discovered_raw(oop ref, oop value); |
914 static inline HeapWord* discovered_addr(oop ref); |
908 static inline HeapWord* discovered_addr(oop ref); |
915 |
|
916 // Accessors for statics |
|
917 static oop pending_list_lock(); |
|
918 static oop pending_list(); |
|
919 |
|
920 static HeapWord* pending_list_lock_addr(); |
|
921 static HeapWord* pending_list_addr(); |
|
922 }; |
909 }; |
923 |
910 |
924 |
911 |
925 // Interface to java.lang.ref.SoftReference objects |
912 // Interface to java.lang.ref.SoftReference objects |
926 |
913 |