[sanitizer_common] Add internal_clone().
Add a wrapper for the clone syscall for use in StopTheWorld. We implement it only for x86_64, so stop building StopTheWorld for other platforms (no one uses it outside x86_64 anyway). See https://code.google.com/p/address-sanitizer/issues/detail?id=214 for why we can't use the glibc clone() wrapper. llvm-svn: 189753
Showing
- compiler-rt/lib/sanitizer_common/sanitizer_linux.cc 63 additions, 0 deletionscompiler-rt/lib/sanitizer_common/sanitizer_linux.cc
- compiler-rt/lib/sanitizer_common/sanitizer_linux.h 4 additions, 0 deletionscompiler-rt/lib/sanitizer_common/sanitizer_linux.h
- compiler-rt/lib/sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc 13 additions, 12 deletions.../sanitizer_common/sanitizer_stoptheworld_linux_libcdep.cc
- compiler-rt/lib/sanitizer_common/tests/sanitizer_stoptheworld_test.cc 2 additions, 2 deletions...lib/sanitizer_common/tests/sanitizer_stoptheworld_test.cc
Please register or sign in to comment