diff options
author | Elliott Hughes <enh@google.com> | 2012-01-30 11:56:36 -0800 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2012-01-30 11:56:36 -0800 |
commit | 160f3e20e81a9137e75a18a8613c09c51c8c004f (patch) | |
tree | df4865e6400221834d6dcd239e2426634b18f716 /src | |
parent | 9e921bc034450e35c2b5d45cc09a26920ad0d6e6 (diff) | |
download | android_art-160f3e20e81a9137e75a18a8613c09c51c8c004f.tar.gz android_art-160f3e20e81a9137e75a18a8613c09c51c8c004f.tar.bz2 android_art-160f3e20e81a9137e75a18a8613c09c51c8c004f.zip |
Remove some now-incorrect and now-obsolete DCHECKs.
~Mutex already checks that the mutex isn't locked, and already has an
exception for the case where we're shutting down.
Change-Id: Ide2343fb5fe06ee8a5014023bc1817ec142e5ec8
Diffstat (limited to 'src')
-rw-r--r-- | src/monitor.cc | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/monitor.cc b/src/monitor.cc index a29f2a177f..c4deccbdbf 100644 --- a/src/monitor.cc +++ b/src/monitor.cc @@ -123,13 +123,6 @@ Monitor::Monitor(Object* obj) Monitor::~Monitor() { DCHECK(obj_ != NULL); DCHECK_EQ(LW_SHAPE(*obj_->GetRawLockWordAddress()), LW_SHAPE_FAT); - -#ifndef NDEBUG - // This lock is associated with an object that's being swept. - bool locked = lock_.TryLock(); - DCHECK(locked) << obj_; - lock_.Unlock(); -#endif } /* |