[PATCH] Change internal allocator in sanitizer tools
Dmitry Vyukov
dvyukov at google.com
Thu Apr 18 10:19:14 PDT 2013
================
Comment at: lib/sanitizer_common/sanitizer_allocator.cc:20
@@ +19,3 @@
+// ThreadSanitizer for Go uses libc malloc/free.
+#if SANITIZER_LINUX && defined(TSAN_GO)
+extern "C" void *__libc_malloc(uptr size);
----------------
s/TSAN_GO/SANITIZER_GO/
================
Comment at: lib/sanitizer_common/sanitizer_allocator.cc:25
@@ +24,3 @@
+static void *RawInternalAlloc(uptr size) {
+ return __libc_malloc(size);
+}
----------------
windows does not have __libc_malloc()
http://llvm-reviews.chandlerc.com/D671
More information about the llvm-commits
mailing list