mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-17 23:36:40 +00:00
[TSan] Fix Go build.
llvm-svn: 225336
This commit is contained in:
parent
b392f51379
commit
7eba6dfdaa
@ -940,6 +940,7 @@ bool IsDeadlySignal(int signum) {
|
||||
return (signum == SIGSEGV) && common_flags()->handle_segv;
|
||||
}
|
||||
|
||||
#ifndef SANITIZER_GO
|
||||
void *internal_start_thread(void(*func)(void *arg), void *arg) {
|
||||
// Start the thread with signals blocked, otherwise it can steal user signals.
|
||||
__sanitizer_sigset_t set, old;
|
||||
@ -954,6 +955,11 @@ void *internal_start_thread(void(*func)(void *arg), void *arg) {
|
||||
void internal_join_thread(void *th) {
|
||||
real_pthread_join(th, 0);
|
||||
}
|
||||
#else
|
||||
void *internal_start_thread(void (*func)(void *), void *arg) { return 0; }
|
||||
|
||||
void internal_join_thread(void *th) {}
|
||||
#endif
|
||||
|
||||
} // namespace __sanitizer
|
||||
|
||||
|
@ -28,13 +28,6 @@ bool IsExpectedReport(uptr addr, uptr size) {
|
||||
return false;
|
||||
}
|
||||
|
||||
void *internal_start_thread(void(*func)(void*), void *arg) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
void internal_join_thread(void *th) {
|
||||
}
|
||||
|
||||
ReportLocation *SymbolizeData(uptr addr) {
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user