summaryrefslogtreecommitdiffstats
path: root/vm/interp
diff options
context:
space:
mode:
authorbuzbee <buzbee@google.com>2013-05-23 13:53:50 -0700
committerbuzbee <buzbee@google.com>2013-05-23 14:20:30 -0700
commitbbbe552a31f7229708bfc748480ce538218ae076 (patch)
tree1d0d948fd26a7d91dcc73bde58026c32d5e8803e /vm/interp
parent62a91ef437e5e705fd101df2d8616e62990cc02b (diff)
downloadandroid_dalvik-bbbe552a31f7229708bfc748480ce538218ae076.tar.gz
android_dalvik-bbbe552a31f7229708bfc748480ce538218ae076.tar.bz2
android_dalvik-bbbe552a31f7229708bfc748480ce538218ae076.zip
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
Diffstat (limited to 'vm/interp')
-rw-r--r--vm/interp/InterpState.h2
1 files changed, 1 insertions, 1 deletions
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 {