diff options
author | 2017-07-05 09:53:32 -0700 | |
---|---|---|
committer | 2017-08-04 07:31:52 -0700 | |
commit | 895f92218f705ff8ad9c47b8be0c093130d9fbbc (patch) | |
tree | de590436a5feb2db183e3f3e35e29817c5ea3fb6 /runtime/mirror/accessible_object.h | |
parent | c116154a4aae8ed1608a15ac602f8bd69d8ca0ff (diff) |
ART: Fix up small header includes
Test: m
Change-Id: I6978d6eb4b95a6ee810e5a48ca6f5d6c590d4ce1
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); }; |