[compiler-rt] r184312 - [lsan] Prevent inlining of WipeStack().

Sergey Matveev earthdok at google.com
Wed Jun 19 08:39:13 PDT 2013


Author: smatveev
Date: Wed Jun 19 10:39:13 2013
New Revision: 184312

URL: http://llvm.org/viewvc/llvm-project?rev=184312&view=rev
Log:
[lsan] Prevent inlining of WipeStack().

Modified:
    compiler-rt/trunk/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc

Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc?rev=184312&r1=184311&r2=184312&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc Wed Jun 19 10:39:13 2013
@@ -278,7 +278,7 @@ class ScopedStackSpaceWithGuard {
   uptr guard_start_;
 };
 
-static void WipeStack() {
+NOINLINE static void WipeStack() {
   char arr[256];
   internal_memset(arr, 0, sizeof(arr));
 }





More information about the llvm-commits mailing list