tsan: disable instrumentation in runtime callbacks in tests

All runtime callbacks must be non-instrumented with the new tsan runtime
(it's now more picky with respect to recursion into runtime).
Disable instrumentation in Darwin tests as we do in all other tests now.

Differential Revision: https://reviews.llvm.org/D114348
This commit is contained in:
Dmitry Vyukov 2021-11-22 08:22:01 +01:00
parent 62e9acad0a
commit e69d50d9ff
2 changed files with 4 additions and 3 deletions

View File

@ -42,7 +42,8 @@ int main() {
return 0;
}
void __tsan_on_report(void *report) {
__attribute__((disable_sanitizer_instrumentation)) void
__tsan_on_report(void *report) {
const char *type;
void *addr;
void *start;

View File

@ -45,8 +45,8 @@ int main(int argc, char *argv[]) {
fprintf(stderr, "Done.\n");
}
extern "C"
void __tsan_on_report(void *report) {
extern "C" __attribute__((disable_sanitizer_instrumentation)) void
__tsan_on_report(void *report) {
const char *description;
int count;
int stack_count, mop_count, loc_count, mutex_count, thread_count,