summaryrefslogtreecommitdiff
path: root/lib/sanitizer_common/sanitizer_stoptheworld.h
AgeCommit message (Collapse)Author
2015-03-06asan: fix comment formattingDmitry Vyukov
As per comments in http://reviews.llvm.org/D8032 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@231457 91177308-0d34-0410-b5e6-96231b3b80d8
2015-03-05tsan: fix signal handling during stop-the-worldDmitry Vyukov
Long story short: stop-the-world briefly resets SIGSEGV handler to SIG_DFL. This breaks programs that handle and continue after SIGSEGV (namely JVM). See the test and comments for details. This is reincarnation of reverted r229678 (http://reviews.llvm.org/D7722). Changed: - execute TracerThreadDieCallback only on tracer thread - reset global data in TracerThreadSignalHandler/TracerThreadDieCallback - handle EINTR from waitpid Add 3 new test: - SIGSEGV during leak checking - StopTheWorld operation during signal storm from an external process - StopTheWorld operation when the program generates and handles SIGSEGVs http://reviews.llvm.org/D8032 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@231367 91177308-0d34-0410-b5e6-96231b3b80d8
2013-06-14[Sanitizer] Rename InternalVector to InternalMmapVectorAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@183972 91177308-0d34-0410-b5e6-96231b3b80d8
2013-04-01[libsanitizer] Add register dumping support to SuspendedThreadsList.Alexander Potapenko
An interface for obtaining register contexts from suspended threads. Tailored for LSan use. Patch by Sergey Matveev (earthdok@google.com) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@178461 91177308-0d34-0410-b5e6-96231b3b80d8
2013-03-18[Sanitizer] Get rid of global mutexes in StopTheWorld implementationAlexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177246 91177308-0d34-0410-b5e6-96231b3b80d8
2013-03-15[libsanitizer] StopTheWorld in sanitizer_commonAlexander Potapenko
StopTheWorld puts the process in a suspended state before running the user-supplied callback. To be used in TSan and in leak checking code. Linux implementation provided. Patch by Sergey Matveev (earthdok@google.com) git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177156 91177308-0d34-0410-b5e6-96231b3b80d8