diff options
author | Hiroshi Yamauchi <yamauchi@google.com> | 2015-03-20 10:28:34 -0700 |
---|---|---|
committer | Hiroshi Yamauchi <yamauchi@google.com> | 2015-03-20 10:28:34 -0700 |
commit | 79bd2bfa8f1602067fd381834206ed6b7e73a9be (patch) | |
tree | 8f2c7da90cb6a867bac53bb0d7e180f46d55adf9 /runtime/globals.h | |
parent | f5988cf0c47ff935bb19c89ed0398be5fbe44bb6 (diff) | |
download | art-79bd2bfa8f1602067fd381834206ed6b7e73a9be.zip art-79bd2bfa8f1602067fd381834206ed6b7e73a9be.tar.gz art-79bd2bfa8f1602067fd381834206ed6b7e73a9be.tar.bz2 |
Make it possible to enable tlab with a build parameter.
For testing.
Change-Id: I4d06a4db733b7fa09105f068028483cf88db7925
Diffstat (limited to 'runtime/globals.h')
-rw-r--r-- | runtime/globals.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/runtime/globals.h b/runtime/globals.h index 0845475..ac8751c 100644 --- a/runtime/globals.h +++ b/runtime/globals.h @@ -109,6 +109,13 @@ static constexpr bool kPoisonHeapReferences = true; static constexpr bool kPoisonHeapReferences = false; #endif +// If true, enable the tlab allocator by default. +#ifdef ART_USE_TLAB +static constexpr bool kUseTlab = true; +#else +static constexpr bool kUseTlab = false; +#endif + // Kinds of tracing clocks. enum class TraceClockSource { kThreadCpu, |