summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--runtime/art_method.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/art_method.h b/runtime/art_method.h
index c17eef1834..fb6174e867 100644
--- a/runtime/art_method.h
+++ b/runtime/art_method.h
@@ -464,7 +464,7 @@ class ArtMethod FINAL {
// where the declaring class is treated as a weak reference (accessing it with
// a read barrier would either prevent unloading the class, or crash the runtime if
// the GC wants to unload it).
- DCHECK(!IsNative());
+ DCHECK(!IsNative<kWithoutReadBarrier>());
if (UNLIKELY(IsProxyMethod())) {
return nullptr;
}