[llvm-commits] [compiler-rt] r147930 - /compiler-rt/trunk/lib/asan/asan_thread.cc
Alexey Samsonov
samsonov at google.com
Wed Jan 11 00:07:51 PST 2012
Author: samsonov
Date: Wed Jan 11 02:07:51 2012
New Revision: 147930
URL: http://llvm.org/viewvc/llvm-project?rev=147930&view=rev
Log:
Test commit. Minor cleanup in AsanThread
Modified:
compiler-rt/trunk/lib/asan/asan_thread.cc
Modified: compiler-rt/trunk/lib/asan/asan_thread.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_thread.cc?rev=147930&r1=147929&r2=147930&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_thread.cc (original)
+++ compiler-rt/trunk/lib/asan/asan_thread.cc Wed Jan 11 02:07:51 2012
@@ -45,9 +45,7 @@
}
void AsanThread::ClearShadowForThreadStack() {
- uintptr_t shadow_bot = MemToShadow(stack_bottom_);
- uintptr_t shadow_top = MemToShadow(stack_top_);
- real_memset((void*)shadow_bot, 0, shadow_top - shadow_bot);
+ PoisonShadow(stack_bottom_, stack_top_ - stack_bottom_, 0);
}
void AsanThread::Init() {
More information about the llvm-commits
mailing list