From 67bc236a207852d652f6ddeab0a90efc1bd111bb Mon Sep 17 00:00:00 2001 From: buzbee Date: Tue, 11 Oct 2011 18:08:40 -0700 Subject: Register promotion fix Restructured the type inference mechanism, added lots of DCHECKS, bumped the default memory allocation size to reflect AOT compilation and tweaked the bit vector manipulation routines to be better at handling large sparse vectors (something the old trace JIT didn't encounter enough to care). With this CL, optimization is back on by default. Should also see a significant boost in compilation speed (~2x better for boot.oat). Change-Id: Ifd134ef337be173a1be756bb9198b24c5b4936b3 --- src/compiler/CompilerUtility.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/compiler/CompilerUtility.h') diff --git a/src/compiler/CompilerUtility.h b/src/compiler/CompilerUtility.h index c0dcaf76c1..0a7d079b50 100644 --- a/src/compiler/CompilerUtility.h +++ b/src/compiler/CompilerUtility.h @@ -19,8 +19,8 @@ #include "Dalvik.h" -/* Each arena page has some overhead, so take a few bytes off 8k */ -#define ARENA_DEFAULT_SIZE 8100 +/* Each arena page has some overhead, so take a few bytes off */ +#define ARENA_DEFAULT_SIZE ((256 * 1024) - 256) /* Allocate the initial memory block for arena-based allocation */ bool oatHeapInit(void); -- cgit v1.2.3-59-g8ed1b