diff options
Diffstat (limited to 'runtime/art_method-inl.h')
| -rw-r--r-- | runtime/art_method-inl.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/runtime/art_method-inl.h b/runtime/art_method-inl.h index 65bcefa354..d6b2b7e04d 100644 --- a/runtime/art_method-inl.h +++ b/runtime/art_method-inl.h @@ -35,8 +35,6 @@ #include "quick/quick_method_frame_info.h" #include "read_barrier-inl.h" #include "runtime-inl.h" -#include "scoped_thread_state_change.h" -#include "thread-inl.h" #include "utils.h" namespace art { @@ -78,11 +76,8 @@ inline bool ArtMethod::CASDeclaringClass(mirror::Class* expected_class, } inline uint32_t ArtMethod::GetAccessFlags() { - if (kIsDebugBuild) { - ScopedObjectAccess soa(Thread::Current()); - CHECK(IsRuntimeMethod() || GetDeclaringClass()->IsIdxLoaded() || - GetDeclaringClass()->IsErroneous()); - } + DCHECK(IsRuntimeMethod() || GetDeclaringClass()->IsIdxLoaded() || + GetDeclaringClass()->IsErroneous()); return access_flags_; } |