summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Hao <jeffhao@google.com>2013-07-10 15:14:40 -0700
committerJeff Hao <jeffhao@google.com>2013-07-10 15:14:40 -0700
commitcf90940b2f83f16f6a0ef3e9d9d911e11bb6c055 (patch)
treed27b1d9c45cd3e4a42f199da5eca30a8b6dfdc1b
parentebc540205b35826398f32fa3486393ad6ead6f22 (diff)
downloadart-cf90940b2f83f16f6a0ef3e9d9d911e11bb6c055.zip
art-cf90940b2f83f16f6a0ef3e9d9d911e11bb6c055.tar.gz
art-cf90940b2f83f16f6a0ef3e9d9d911e11bb6c055.tar.bz2
Fix debug build assertion failing on boot.
Change-Id: Ica7b115340821fc729db674077ed2a488c02b7c3
-rw-r--r--src/gc/space/space-inl.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/gc/space/space-inl.h b/src/gc/space/space-inl.h
index 8216d1b..54bf604 100644
--- a/src/gc/space/space-inl.h
+++ b/src/gc/space/space-inl.h
@@ -32,12 +32,7 @@ inline ImageSpace* Space::AsImageSpace() {
}
inline DlMallocSpace* Space::AsDlMallocSpace() {
- DCHECK_EQ(GetType(), kSpaceTypeAllocSpace);
- return down_cast<DlMallocSpace*>(down_cast<MemMapSpace*>(this));
-}
-
-inline DlMallocSpace* Space::AsZygoteSpace() {
- DCHECK_EQ(GetType(), kSpaceTypeZygoteSpace);
+ DCHECK(GetType() == kSpaceTypeAllocSpace || GetType() == kSpaceTypeZygoteSpace);
return down_cast<DlMallocSpace*>(down_cast<MemMapSpace*>(this));
}