From 4d02711ea578dbb789abb30cbaf12f9926e13d81 Mon Sep 17 00:00:00 2001 From: Roland Levillain Date: Wed, 1 Jul 2015 15:41:14 +0100 Subject: 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 --- compiler/common_compiler_test.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'compiler/common_compiler_test.h') 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> 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) { \ -- cgit v1.2.3-59-g8ed1b