diff options
-rw-r--r-- | runtime/art_method.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/runtime/art_method.h b/runtime/art_method.h index 51520ddd4c..30dc09f67f 100644 --- a/runtime/art_method.h +++ b/runtime/art_method.h @@ -356,14 +356,6 @@ class EXPORT ArtMethod final { } static bool IsMemorySharedMethod(uint32_t access_flags) { - // There's an overlap with `kAccMemorySharedMethod` and `kAccIntrinsicBits` but that's OK as - // intrinsics are always in the boot image and therefore memory shared. - static_assert((kAccMemorySharedMethod & kAccIntrinsicBits) != 0, - "kAccMemorySharedMethod deliberately overlaps intrinsic bits"); - if (IsIntrinsic(access_flags)) { - return true; - } - return (access_flags & kAccMemorySharedMethod) != 0; } |