< prev index next >

src/hotspot/share/oops/arrayKlass.hpp

Print this page
rev 59083 : DRAFT 8236522: NonTearable marker interface for inline classes to enforce atomicity

*** 67,76 **** --- 67,80 ---- static ByteSize element_klass_offset() { return in_ByteSize(offset_of(ArrayKlass, _element_klass)); } // Presented with an ArrayKlass, which storage_properties should be encoded into arrayOop virtual ArrayStorageProperties storage_properties() { return ArrayStorageProperties::empty; } + // Are loads and stores to this concrete array type atomic? + // Note that Object[] is naturally atomic, but its subtypes may not be. + virtual bool element_access_is_atomic() { return true; } + // Testing operation DEBUG_ONLY(bool is_array_klass_slow() const { return true; }) // Instance variables int dimension() const { return _dimension; }
< prev index next >