[compiler-rt] r209641 - On AArch64, use clone() instead of fork()

Greg Fitzgerald gregf at codeaurora.org
Mon May 26 16:44:56 PDT 2014


Author: garious
Date: Mon May 26 18:44:55 2014
New Revision: 209641

URL: http://llvm.org/viewvc/llvm-project?rev=209641&view=rev
Log:
On AArch64, use clone() instead of fork()

Patch by Gideon Billings.

Differential Revision: http://reviews.llvm.org/D3903

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

Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc?rev=209641&r1=209640&r2=209641&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_linux.cc Mon May 26 18:44:55 2014
@@ -508,7 +508,11 @@ uptr internal_sigaltstack(const struct s
 }
 
 int internal_fork() {
+#if SANITIZER_USES_CANONICAL_LINUX_SYSCALLS
+  return internal_syscall(SYSCALL(clone), SIGCHLD, 0);
+#else
   return internal_syscall(SYSCALL(fork));
+#endif
 }
 
 #if SANITIZER_LINUX





More information about the llvm-commits mailing list