diff options
author | Roland Levillain <rpl@google.com> | 2015-07-01 15:41:14 +0100 |
---|---|---|
committer | Roland Levillain <rpl@google.com> | 2015-07-01 16:31:41 +0100 |
commit | 4d02711ea578dbb789abb30cbaf12f9926e13d81 (patch) | |
tree | 29c802afff6e73c06021c44e6b2ec9d8340c75e9 /compiler/common_compiler_test.h | |
parent | 312f1bfcfd8f655e635c941dda147377d8bff814 (diff) |
Implement heap poisoning in ART's Optimizing compiler.
- Instrument ARM, ARM64, x86 and x86-64 code generators.
- Note: To turn heap poisoning on in Optimizing, set the
environment variable `ART_HEAP_POISONING' to "true"
before compiling ART.
Bug: 12687968
Change-Id: Ib3120b38cf805a8a50207a314b9ccc90c8d93740
Diffstat (limited to 'compiler/common_compiler_test.h')
-rw-r--r-- | compiler/common_compiler_test.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/compiler/common_compiler_test.h b/compiler/common_compiler_test.h index b828fcf7e1..d215662645 100644 --- a/compiler/common_compiler_test.h +++ b/compiler/common_compiler_test.h @@ -108,6 +108,13 @@ class CommonCompilerTest : public CommonRuntimeTest { std::list<std::vector<uint8_t>> header_code_and_maps_chunks_; }; +// TODO: When heap reference poisoning works with all compilers in use, get rid of this. +#define TEST_DISABLED_FOR_HEAP_REFERENCE_POISONING_WITH_QUICK() \ + if (kPoisonHeapReferences && GetCompilerKind() == Compiler::kQuick) { \ + printf("WARNING: TEST DISABLED FOR HEAP REFERENCE POISONING WITH QUICK\n"); \ + return; \ + } + // TODO: When non-PIC works with all compilers in use, get rid of this. #define TEST_DISABLED_FOR_NON_PIC_COMPILING_WITH_OPTIMIZING() \ if (GetCompilerKind() == Compiler::kOptimizing) { \ |