From 508a128f7472855924ff929856d12761b312a644 Mon Sep 17 00:00:00 2001 From: Kostya Serebryany Date: Tue, 30 Oct 2012 05:07:05 +0000 Subject: [PATCH] [asan docs] explain why asan exits on the first error llvm-svn: 167004 --- clang/docs/AddressSanitizer.html | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/clang/docs/AddressSanitizer.html b/clang/docs/AddressSanitizer.html index d60cdd9..4939079 100644 --- a/clang/docs/AddressSanitizer.html +++ b/clang/docs/AddressSanitizer.html @@ -105,6 +105,13 @@ previously allocated by thread T0 here: ==9442== ABORTING +AddressSanitizer exits on the first detected error. This is by design. +One reason: it makes the generated code smaller and faster (both by ~5%). +Another reason: this makes fixing bugs unavoidable. With Valgrind, it is often +the case that users treat Valgrind warnings as false positives +(which they are not) and don't fix them. + +

__has_feature(address_sanitizer)

In some cases one may need to execute different code depending on whether AddressSanitizer is enabled. -- 2.7.4