[compiler-rt] r186103 - [sanitizer] Remove optional arguments from clone() invocation.

Sergey Matveev earthdok at google.com
Thu Jul 11 09:37:44 PDT 2013


Author: smatveev
Date: Thu Jul 11 11:37:44 2013
New Revision: 186103

URL: http://llvm.org/viewvc/llvm-project?rev=186103&view=rev
Log:
[sanitizer] Remove optional arguments from clone() invocation.

Unbreaks compilation on older systems. Patch by Andy Jost.

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=186103&r1=186102&r2=186103&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 Thu Jul 11 11:37:44 2013
@@ -327,8 +327,8 @@ void StopTheWorld(StopTheWorldCallback c
   // permissions.
   tracer_thread_argument.mutex.Lock();
   pid_t tracer_pid = clone(TracerThread, tracer_stack.Bottom(),
-                          CLONE_VM | CLONE_FS | CLONE_FILES | CLONE_UNTRACED,
-                          &tracer_thread_argument, 0, 0, 0);
+                           CLONE_VM | CLONE_FS | CLONE_FILES | CLONE_UNTRACED,
+                           &tracer_thread_argument);
   if (tracer_pid < 0) {
     Report("Failed spawning a tracer thread (errno %d).\n", errno);
     tracer_thread_argument.mutex.Unlock();





More information about the llvm-commits mailing list