diff options
Diffstat (limited to 'runtime/base/mutex.h')
-rw-r--r-- | runtime/base/mutex.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/base/mutex.h b/runtime/base/mutex.h index 6e4b96c2e6..f2be85e277 100644 --- a/runtime/base/mutex.h +++ b/runtime/base/mutex.h @@ -344,8 +344,8 @@ class LOCKABLE ReaderWriterMutex : public BaseMutex { // Assert the current thread has shared access to the ReaderWriterMutex. void AssertSharedHeld(const Thread* self) { if (kDebugLocking && (gAborting == 0)) { - // TODO: we can only assert this well when self != NULL. - CHECK(IsSharedHeld(self) || self == NULL) << *this; + // TODO: we can only assert this well when self != null. + CHECK(IsSharedHeld(self) || self == nullptr) << *this; } } void AssertReaderHeld(const Thread* self) { AssertSharedHeld(self); } |