Fix flipped condition in VerifyRoot
Was causing bad roots to never get detected.
Change-Id: I3b0dc574d68659ef383b2aa380d9c2256b5bd63f
diff --git a/src/gc/mark_sweep.cc b/src/gc/mark_sweep.cc
index da6a593..980eed1 100644
--- a/src/gc/mark_sweep.cc
+++ b/src/gc/mark_sweep.cc
@@ -181,7 +181,7 @@
// See if the root is on any space bitmap.
if (GetHeap()->GetLiveBitmap()->GetSpaceBitmap(root) == NULL) {
LargeObjectSpace* large_object_space = GetHeap()->GetLargeObjectsSpace();
- if (large_object_space->Contains(root)) {
+ if (!large_object_space->Contains(root)) {
LOG(ERROR) << "Found invalid root: " << root;
LOG(ERROR) << "VReg / Shadow frame offset: " << vreg;
if (method != NULL) {