summaryrefslogtreecommitdiffstats
path: root/runtime/runtime-inl.h
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/runtime-inl.h')
-rw-r--r--runtime/runtime-inl.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/runtime/runtime-inl.h b/runtime/runtime-inl.h
index 8b632b245..fe05073fa 100644
--- a/runtime/runtime-inl.h
+++ b/runtime/runtime-inl.h
@@ -29,9 +29,7 @@ inline bool Runtime::IsClearedJniWeakGlobal(mirror::Object* obj) {
inline mirror::Object* Runtime::GetClearedJniWeakGlobal() {
mirror::Object* obj = sentinel_.Read();
- if (obj == nullptr) {
- LOG(ERROR) << "Failed to return cleared JNI weak global sentinel";
- }
+ DCHECK(obj != nullptr);
return obj;
}