From abe64aa66cbe974508c04692f21f061c51ac6d6d Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Wed, 30 May 2012 17:34:45 -0700 Subject: 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 --- src/compiler/CompilerUtility.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/compiler/CompilerUtility.h') diff --git a/src/compiler/CompilerUtility.h b/src/compiler/CompilerUtility.h index d4316786fc..5e8e9938a3 100644 --- a/src/compiler/CompilerUtility.h +++ b/src/compiler/CompilerUtility.h @@ -27,7 +27,7 @@ namespace art { /* Allocate the initial memory block for arena-based allocation */ bool oatHeapInit(CompilationUnit* cUnit); -/* Collect memory usage statstics */ +/* Collect memory usage statistics */ //#define WITH_MEMSTATS struct ArenaMemBlock { @@ -37,8 +37,7 @@ struct ArenaMemBlock { char ptr[0]; }; -void* oatNew(CompilationUnit* cUnit, size_t size, bool zero, - oatAllocKind kind = kAllocMisc); +void* oatNew(CompilationUnit* cUnit, size_t size, bool zero, oatAllocKind kind); void oatArenaReset(CompilationUnit *cUnit); -- cgit v1.2.3-59-g8ed1b