From bbbe552a31f7229708bfc748480ce538218ae076 Mon Sep 17 00:00:00 2001 From: buzbee Date: Thu, 23 May 2013 13:53:50 -0700 Subject: JIT tuning; set cache size on command line The tuning knobs for triggering trace compilation for the JIT had not been revisited for several years. In that time, the working set of some applications have significantly increased, leading to frequent cache overlows & flushes. This CL adds the ability to set the maximum size of the JIT's cache on the command line, and we expect to use different settings depending on device configuration (rule of thumb: 1K for each 1M for system RAM, with 2M limit). Additionally, the trace compilation trigger has been tightened to limit the compilation of cold traces. Change-Id: Ice22c5d9d46a93e465c57dd83f50ca3912f1672e --- vm/interp/InterpState.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vm/interp') diff --git a/vm/interp/InterpState.h b/vm/interp/InterpState.h index cc0a13fb9..eaac33766 100644 --- a/vm/interp/InterpState.h +++ b/vm/interp/InterpState.h @@ -191,7 +191,7 @@ enum SelfVerificationState { /* Number of entries in the 2nd level JIT profiler filter cache */ #define JIT_TRACE_THRESH_FILTER_SIZE 32 /* Number of low dalvik pc address bits to include in 2nd level filter key */ -#define JIT_TRACE_THRESH_FILTER_PC_BITS 4 +#define JIT_TRACE_THRESH_FILTER_PC_BITS 16 #define MAX_JIT_RUN_LEN 64 enum JitHint { -- cgit v1.2.3