mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-18 03:26:39 +00:00

This change switches tsan to the new runtime which features: - 2x smaller shadow memory (2x of app memory) - faster fully vectorized race detection - small fixed-size vector clocks (512b) - fast vectorized vector clock operations - unlimited number of alive threads/goroutimes Depends on D112602. Reviewed By: melver Differential Revision: https://reviews.llvm.org/D112603
24 lines
792 B
C++
24 lines
792 B
C++
// RUN: %clangxx_tsan -O1 %s -o %t && %deflake %run %t | FileCheck %s
|
|
|
|
// ReportIgnoresEnabled is disabled on Darwin, see comment in tsan_rtl_thread.cpp.
|
|
// UNSUPPORTED: darwin
|
|
#include "test.h"
|
|
|
|
int main() {
|
|
AnnotateIgnoreReadsBegin("", 0);
|
|
AnnotateIgnoreReadsBegin("", 0);
|
|
AnnotateIgnoreReadsEnd("", 0);
|
|
AnnotateIgnoreReadsEnd("", 0);
|
|
AnnotateIgnoreReadsBegin("", 0);
|
|
AnnotateIgnoreReadsBegin("", 0);
|
|
AnnotateIgnoreReadsEnd("", 0);
|
|
}
|
|
|
|
// CHECK: ThreadSanitizer: main thread finished with ignores enabled
|
|
// CHECK: Ignore was enabled at:
|
|
// CHECK: #0 AnnotateIgnoreReadsBegin
|
|
// CHECK: #1 main {{.*}}thread_end_with_ignore3.cpp:12
|
|
// CHECK: Ignore was enabled at:
|
|
// CHECK: #0 AnnotateIgnoreReadsBegin
|
|
// CHECK: #1 main {{.*}}thread_end_with_ignore3.cpp:13
|