From ecf7cc18ced8a384ef373e7f04ba3b70ea2fd5a7 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 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@167004 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/AddressSanitizer.html | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/AddressSanitizer.html b/docs/AddressSanitizer.html index d60cdd9d35..4939079917 100644 --- a/docs/AddressSanitizer.html +++ b/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.40.0