diff options
| author | 2012-05-30 17:34:45 -0700 | |
|---|---|---|
| committer | 2012-05-30 17:34:45 -0700 | |
| commit | abe64aa66cbe974508c04692f21f061c51ac6d6d (patch) | |
| tree | 5256fad4f489d2ec4b321908dbfa40a1d05cacb0 /src/compiler/CompilerUtility.h | |
| parent | 29dbef28a9fa99d337265de1f054ba418f6bf127 (diff) | |
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
Diffstat (limited to 'src/compiler/CompilerUtility.h')
| -rw-r--r-- | src/compiler/CompilerUtility.h | 5 |
1 files changed, 2 insertions, 3 deletions
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); |