OSDN Git Service

JIT tuning; set cache size on command line
authorbuzbee <buzbee@google.com>
Thu, 23 May 2013 20:53:50 +0000 (13:53 -0700)
committerbuzbee <buzbee@google.com>
Thu, 23 May 2013 21:20:30 +0000 (14:20 -0700)
commitbbbe552a31f7229708bfc748480ce538218ae076
tree1d0d948fd26a7d91dcc73bde58026c32d5e8803e
parent62a91ef437e5e705fd101df2d8616e62990cc02b
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/Globals.h
vm/Init.cpp
vm/compiler/Compiler.cpp
vm/compiler/codegen/arm/Assemble.cpp
vm/compiler/codegen/arm/armv5te-vfp/ArchVariant.cpp
vm/compiler/codegen/arm/armv5te/ArchVariant.cpp
vm/compiler/codegen/arm/armv7-a-neon/ArchVariant.cpp
vm/compiler/codegen/arm/armv7-a/ArchVariant.cpp
vm/compiler/codegen/mips/mips/ArchVariant.cpp
vm/compiler/codegen/x86/CodegenInterface.cpp
vm/interp/InterpState.h