diff options
author | Hiroshi Yamauchi <yamauchi@google.com> | 2014-12-08 12:08:46 -0800 |
---|---|---|
committer | Hiroshi Yamauchi <yamauchi@google.com> | 2014-12-08 13:54:52 -0800 |
commit | b0d22f178c0a8d1ee7d3692f282bb46c53cc2036 (patch) | |
tree | dfe756bf4e6f75ce19b25f17e0b22eb403de7c05 /runtime/globals.h | |
parent | a4b1eee59648703f8fab664b45d1d61c861c80fe (diff) | |
download | art-b0d22f178c0a8d1ee7d3692f282bb46c53cc2036.zip art-b0d22f178c0a8d1ee7d3692f282bb46c53cc2036.tar.gz art-b0d22f178c0a8d1ee7d3692f282bb46c53cc2036.tar.bz2 |
Make it possible to enable heap poisoning via make variable.
If ART_HEAP_POISONING=true, build with heap poisoning enabled.
Bug: 8367515
Change-Id: I818e86047e6dd99b5bc9920713ef943a65b677e6
Diffstat (limited to 'runtime/globals.h')
-rw-r--r-- | runtime/globals.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/globals.h b/runtime/globals.h index 3104229..beabf55 100644 --- a/runtime/globals.h +++ b/runtime/globals.h @@ -101,7 +101,11 @@ static constexpr bool kUseBrooksReadBarrier = false; static constexpr bool kUseBakerOrBrooksReadBarrier = kUseBakerReadBarrier || kUseBrooksReadBarrier; // If true, references within the heap are poisoned (negated). +#ifdef ART_HEAP_POISONING +static constexpr bool kPoisonHeapReferences = true; +#else static constexpr bool kPoisonHeapReferences = false; +#endif // Kinds of tracing clocks. enum TraceClockSource { |