summaryrefslogtreecommitdiff
path: root/lib/asan/asan_fake_stack.cc
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2013-09-04 10:59:32 +0000
committerKostya Serebryany <kcc@google.com>2013-09-04 10:59:32 +0000
commit73dc36ea7dd04a2ea52ffae91670913731de209a (patch)
tree3269f160762c61ec151b2e356d28a817fa9654f8 /lib/asan/asan_fake_stack.cc
parentdb9d684d26dc31a7522bb90841d51cbcc84ed23b (diff)
[asan] make use-after-return handle very deep recursion; fixes 483.xalancbmk in UAR mode
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@189929 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/asan/asan_fake_stack.cc')
-rw-r--r--lib/asan/asan_fake_stack.cc10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/asan/asan_fake_stack.cc b/lib/asan/asan_fake_stack.cc
index 02f92c1f2..62a1982a7 100644
--- a/lib/asan/asan_fake_stack.cc
+++ b/lib/asan/asan_fake_stack.cc
@@ -102,10 +102,12 @@ void FakeStack::AllocateOneSizeClass(uptr size_class) {
CHECK(ClassMmapSize(size_class) >= GetPageSizeCached());
uptr new_mem = (uptr)MmapOrDie(
ClassMmapSize(size_class), __FUNCTION__);
- // Printf("T%d new_mem[%zu]: %p-%p mmap %zu\n",
- // GetCurrentThread()->tid(),
- // size_class, new_mem, new_mem + ClassMmapSize(size_class),
- // ClassMmapSize(size_class));
+ if (0) {
+ Printf("T%d new_mem[%zu]: %p-%p mmap %zu\n",
+ GetCurrentThread()->tid(),
+ size_class, new_mem, new_mem + ClassMmapSize(size_class),
+ ClassMmapSize(size_class));
+ }
uptr i;
uptr size = ClassSize(size_class);
for (i = 0; i + size <= ClassMmapSize(size_class); i += size) {