From 4e3b9802bd73218c8ceca95f49a863eefbba6abd Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 24 Jan 2013 14:07:19 +0000 Subject: [PATCH] tsan: return the old fake numbers from malloc stats (some code already depends on them) llvm-svn: 173348 --- compiler-rt/lib/tsan/rtl/tsan_mman.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler-rt/lib/tsan/rtl/tsan_mman.cc b/compiler-rt/lib/tsan/rtl/tsan_mman.cc index 314e20f..7ddcee2 100644 --- a/compiler-rt/lib/tsan/rtl/tsan_mman.cc +++ b/compiler-rt/lib/tsan/rtl/tsan_mman.cc @@ -193,11 +193,11 @@ uptr __tsan_get_heap_size() { } uptr __tsan_get_free_bytes() { - return 0; + return 1; } uptr __tsan_get_unmapped_bytes() { - return 0; + return 1; } uptr __tsan_get_estimated_allocated_size(uptr size) { -- 2.7.4