Revision: 12361
Author: [email protected]
Date: Tue Aug 21 07:21:53 2012
Log: Introduce DISABLE_ASAN macro to disable AddressSanitizer
instrumentation for given functions.
Disable AddressSanitizer instrumentation for StackTracer::Trace.
[email protected]
BUG=chromium:134722
Review URL: https://chromiumcodereview.appspot.com/10834430
http://code.google.com/p/v8/source/detail?r=12361
Modified:
/branches/bleeding_edge/src/globals.h
/branches/bleeding_edge/src/log.cc
=======================================
--- /branches/bleeding_edge/src/globals.h Tue May 8 05:38:24 2012
+++ /branches/bleeding_edge/src/globals.h Tue Aug 21 07:21:53 2012
@@ -360,6 +360,20 @@
#define MUST_USE_RESULT
#endif
+
+// Define DISABLE_ASAN macros.
+#if defined(__has_feature)
+#if __has_feature(address_sanitizer)
+#define DISABLE_ASAN __attribute__((no_address_safety_analysis))
+#endif
+#endif
+
+
+#ifndef DISABLE_ASAN
+#define DISABLE_ASAN
+#endif
+
+
//
-----------------------------------------------------------------------------
// Forward declarations for frequently used classes
// (sorted alphabetically)
=======================================
--- /branches/bleeding_edge/src/log.cc Thu Apr 5 07:10:39 2012
+++ /branches/bleeding_edge/src/log.cc Tue Aug 21 07:21:53 2012
@@ -145,7 +145,7 @@
//
// StackTracer implementation
//
-void StackTracer::Trace(Isolate* isolate, TickSample* sample) {
+DISABLE_ASAN void StackTracer::Trace(Isolate* isolate, TickSample* sample)
{
ASSERT(isolate->IsInitialized());
// Avoid collecting traces while doing GC.
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev