diff options
author | Mathieu Chartier <mathieuc@google.com> | 2015-02-17 10:38:49 -0800 |
---|---|---|
committer | Mathieu Chartier <mathieuc@google.com> | 2015-02-23 16:45:49 -0800 |
commit | 2535abe7d1fcdd0e6aca782b1f1932a703ed50a4 (patch) | |
tree | 140026ff9638ff34050680b6c706b82fa1740b56 /runtime/base | |
parent | 38fee8ef4bc0f4dbe2c6d1f5585895f0c4d16984 (diff) | |
download | art-2535abe7d1fcdd0e6aca782b1f1932a703ed50a4.tar.gz art-2535abe7d1fcdd0e6aca782b1f1932a703ed50a4.tar.bz2 art-2535abe7d1fcdd0e6aca782b1f1932a703ed50a4.zip |
Add JIT
Currently disabled by default unless -Xjit is passed in.
The proposed JIT is a method JIT which works by utilizing interpreter
instrumentation to request compilation of hot methods async during
runtime.
JIT options:
-Xjit / -Xnojit
-Xjitcodecachesize:N
-Xjitthreshold:integervalue
The JIT has a shared copy of a compiler driver which is accessed
by worker threads to compile individual methods.
Added JIT code cache and data cache, currently sized at 2 MB
capacity by default. Most apps will only fill a small fraction of
this cache however.
Added support to the compiler for compiling interpreter quickened
byte codes.
Added test target ART_TEST_JIT=TRUE and --jit for run-test.
TODO:
Clean up code cache.
Delete compiled methods after they are added to code cache.
Add more optimizations related to runtime checks e.g. direct pointers
for invokes.
Add method recompilation.
Move instrumentation to DexFile to improve performance and reduce
memory usage.
Bug: 17950037
Change-Id: Ifa5b2684a2d5059ec5a5210733900aafa3c51bca
Diffstat (limited to 'runtime/base')
-rw-r--r-- | runtime/base/logging.h | 1 | ||||
-rw-r--r-- | runtime/base/mutex.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/runtime/base/logging.h b/runtime/base/logging.h index cc1a4a1e62..3d007ba1e5 100644 --- a/runtime/base/logging.h +++ b/runtime/base/logging.h @@ -42,6 +42,7 @@ struct LogVerbosity { bool gc; bool heap; bool jdwp; + bool jit; bool jni; bool monitor; bool profiler; diff --git a/runtime/base/mutex.h b/runtime/base/mutex.h index 745b2099cf..45d2347ee2 100644 --- a/runtime/base/mutex.h +++ b/runtime/base/mutex.h @@ -67,6 +67,7 @@ enum LockLevel { kReferenceQueueWeakReferencesLock, kReferenceQueueClearedReferencesLock, kReferenceProcessorLock, + kJitCodeCacheLock, kRosAllocGlobalLock, kRosAllocBracketLock, kRosAllocBulkFreeLock, |