209 210 jint int_field_acquire(int offset) const; 211 void release_int_field_put(int offset, jint contents); 212 213 jshort short_field_acquire(int offset) const; 214 void release_short_field_put(int offset, jshort contents); 215 216 jlong long_field_acquire(int offset) const; 217 void release_long_field_put(int offset, jlong contents); 218 219 jfloat float_field_acquire(int offset) const; 220 void release_float_field_put(int offset, jfloat contents); 221 222 jdouble double_field_acquire(int offset) const; 223 void release_double_field_put(int offset, jdouble contents); 224 225 address address_field_acquire(int offset) const; 226 void release_address_field_put(int offset, address contents); 227 228 // printing functions for VM debugging 229 void print_on(outputStream* st) const; // First level print 230 void print_value_on(outputStream* st) const; // Second level print. 231 void print_address_on(outputStream* st) const; // Address printing 232 233 // printing on default output stream 234 void print(); 235 void print_value(); 236 void print_address(); 237 238 // return the print strings 239 char* print_string(); 240 char* print_value_string(); 241 242 // verification operations 243 void verify_on(outputStream* st); 244 void verify(); 245 246 // locking operations 247 inline bool is_locked() const; 248 inline bool is_unlocked() const; 249 inline bool has_bias_pattern() const; 250 inline bool has_bias_pattern_raw() const; 251 252 // asserts and guarantees 253 static bool is_oop(oop obj, bool ignore_mark_word = false); 254 static bool is_oop_or_null(oop obj, bool ignore_mark_word = false); 255 #ifndef PRODUCT 256 inline bool is_unlocked_oop() const; 257 #endif 258 259 // garbage collection 260 inline bool is_gc_marked() const; 261 262 // Forward pointer operations for scavenge 263 inline bool is_forwarded() const; | 209 210 jint int_field_acquire(int offset) const; 211 void release_int_field_put(int offset, jint contents); 212 213 jshort short_field_acquire(int offset) const; 214 void release_short_field_put(int offset, jshort contents); 215 216 jlong long_field_acquire(int offset) const; 217 void release_long_field_put(int offset, jlong contents); 218 219 jfloat float_field_acquire(int offset) const; 220 void release_float_field_put(int offset, jfloat contents); 221 222 jdouble double_field_acquire(int offset) const; 223 void release_double_field_put(int offset, jdouble contents); 224 225 address address_field_acquire(int offset) const; 226 void release_address_field_put(int offset, address contents); 227 228 // printing functions for VM debugging 229 static void print_on(outputStream* st, oopDesc* oop_desc); // First level print 230 static void print_value_on(outputStream* st, oopDesc* oop_desc); // Second level print. 231 void print_address_on(outputStream* st) const; // Address printing 232 233 // printing on default output stream 234 void print(); 235 void print_value(); 236 void print_address(); 237 238 // return the print strings 239 char* print_string(); 240 char* print_value_string(); 241 242 // verification operations 243 static void verify_on(outputStream* st, oopDesc* oop_desc); 244 void verify(); 245 246 // locking operations 247 inline bool is_locked() const; 248 inline bool is_unlocked() const; 249 inline bool has_bias_pattern() const; 250 inline bool has_bias_pattern_raw() const; 251 252 // asserts and guarantees 253 static bool is_oop(oop obj, bool ignore_mark_word = false); 254 static bool is_oop_or_null(oop obj, bool ignore_mark_word = false); 255 #ifndef PRODUCT 256 inline bool is_unlocked_oop() const; 257 #endif 258 259 // garbage collection 260 inline bool is_gc_marked() const; 261 262 // Forward pointer operations for scavenge 263 inline bool is_forwarded() const; |