Remove a dangerous default from oatNew and fix the bug it hid.
Funnily enough, no-one was using the default on purpose anyway.
Change-Id: Id7b576565c1929087c05834078147dbbc8e635b3
diff --git a/src/compiler/Frontend.cc b/src/compiler/Frontend.cc
index 5365d4a..a764583 100644
--- a/src/compiler/Frontend.cc
+++ b/src/compiler/Frontend.cc
@@ -868,7 +868,7 @@
/* Set up for simple method detection */
int numPatterns = sizeof(specialPatterns)/sizeof(specialPatterns[0]);
bool livePattern = (numPatterns > 0) && !(cUnit->disableOpt & (1 << kMatch));
- bool* deadPattern = (bool*)oatNew(cUnit.get(), sizeof(bool) * numPatterns,
+ bool* deadPattern = (bool*)oatNew(cUnit.get(), sizeof(bool) * numPatterns, true,
kAllocMisc);
SpecialCaseHandler specialCase = kNoHandler;
int patternPos = 0;