diff options
Diffstat (limited to 'runtime/mirror/accessible_object.h')
-rw-r--r-- | runtime/mirror/accessible_object.h | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/runtime/mirror/accessible_object.h b/runtime/mirror/accessible_object.h index a217193522..d489f14536 100644 --- a/runtime/mirror/accessible_object.h +++ b/runtime/mirror/accessible_object.h @@ -17,11 +17,8 @@ #ifndef ART_RUNTIME_MIRROR_ACCESSIBLE_OBJECT_H_ #define ART_RUNTIME_MIRROR_ACCESSIBLE_OBJECT_H_ -#include "class.h" -#include "gc_root.h" #include "object.h" #include "read_barrier_option.h" -#include "thread.h" namespace art { @@ -34,12 +31,6 @@ class MANAGED AccessibleObject : public Object { return OFFSET_OF_OBJECT_MEMBER(AccessibleObject, flag_); } - template<bool kTransactionActive> - void SetAccessible(bool value) REQUIRES_SHARED(Locks::mutator_lock_) { - UNUSED(padding_); - return SetFieldBoolean<kTransactionActive>(FlagOffset(), value ? 1u : 0u); - } - bool IsAccessible() REQUIRES_SHARED(Locks::mutator_lock_) { return GetFieldBoolean(FlagOffset()); } @@ -47,7 +38,7 @@ class MANAGED AccessibleObject : public Object { private: uint8_t flag_; // Padding required for correct alignment of subclasses like Executable, Field, etc. - uint8_t padding_[1]; + uint8_t padding_[1] ATTRIBUTE_UNUSED; DISALLOW_IMPLICIT_CONSTRUCTORS(AccessibleObject); }; |