Fail in the right place when we cannot allocate a mark stack.
Previously we'd keep going and then crash when dereferencing
the mark stack later. I expected dalvikvm to throw an OutOfMemoryError
in this scenario but it also aborts.
Change-Id: I3cd995113561f40b191fcb51ecfcb1f032bed4ec
diff --git a/src/mark_stack.h b/src/mark_stack.h
index f8beaff..47d18cd 100644
--- a/src/mark_stack.h
+++ b/src/mark_stack.h
@@ -41,7 +41,7 @@
base_(NULL), limit_(NULL), ptr_(NULL) {
}
- bool Init();
+ void Init();
// Memory mapping of the mark stack.
UniquePtr<MemMap> mem_map_;