hanchenye-llvm-project/compiler-rt/test/tsan
Dmitry Vyukov 2ba80d6df6 tsan: align default value of detect_deadlocks flag with actual behavior
I tricked myself into thinking that deadlock detection is off by default in TSan by looking at the default value of the detect_deadlocks flag and outdated docs. (Created a pull request to update docs.)
I even managed to confuse others: https://groups.google.com/forum/#!topic/thread-sanitizer/xYvnAYwtoDk

However, the default value is overwritten in code (TSan_flags.cc:InitializeFlags). The TSan/deadlock tests also rely on this

This changes aligns the default value of the flag with the actual default behavior.

Author: yln (Julian Lettner)
Reviewed in: https://reviews.llvm.org/D55846

llvm-svn: 349609
2018-12-19 09:34:13 +00:00
..
Darwin [tsan] Avoid calling Block_copy in the "sync" GCD interceptors 2018-08-21 21:24:22 +00:00
Linux tsan: add pthread_tryjoin_np and pthread_timedjoin_np interceptors 2018-11-21 09:31:21 +00:00
Unit
libcxx
CMakeLists.txt [sanitizer] Unify and generalize Apple platforms in CMake and lit test configs 2018-06-20 13:33:42 +00:00
aligned_vs_unaligned_race.cc
annotate_happens_before.cc
atexit.cc
atexit2.cc
atexit3.cc
atomic_free.cc
atomic_free2.cc
atomic_free3.cc
atomic_hle.cc
atomic_norace.cc
atomic_race.cc
atomic_stack.cc
atomic_store.cc
barrier.cc
bench.h
bench_acquire_only.cc
bench_acquire_release.cc
bench_local_mutex.cc
bench_mutex.cc
bench_release_only.cc
bench_rwmutex.cc
bench_shadow_flush.cc
bench_single_writer.cc
bench_ten_mutexes.cc
benign_race.cc
blacklist.cc
blacklist2.cc
cond.c
cond_cancel.c
cond_destruction.cc
cond_race.cc
cond_version.c
custom_mutex.h
custom_mutex0.cc
custom_mutex1.cc
custom_mutex2.cc
custom_mutex3.cc
custom_mutex4.cc
custom_mutex5.cc
cxa_guard_acquire.cc [tsan] Add __cxa_guard_acquire hooks to support cooperative scheduling 2018-11-20 18:21:42 +00:00
deadlock_detector_stress_test.cc tsan: align default value of detect_deadlocks flag with actual behavior 2018-12-19 09:34:13 +00:00
debug_alloc_stack.cc
debug_locate.cc
debugging.cc
deep_stack1.cc
default_options.cc
deflake.bash
dl_iterate_phdr.cc
dlclose.cc
dtls.c Mark breaking TSan tests on NetBSD with XFAIL 2018-10-30 13:28:32 +00:00
exceptions.cc
fd_close_norace.cc
fd_close_norace2.cc
fd_dup_norace.cc
fd_dup_norace2.cc
fd_dup_race.cc
fd_location.cc
fd_pipe_norace.cc
fd_pipe_race.cc
fd_socket_connect_norace.cc
fd_socket_norace.cc
fd_socketpair_norace.cc
fd_stdout_race.cc
fd_tid_recycled.cc
fork_atexit.cc
fork_deadlock.cc
fork_multithreaded.cc
fork_multithreaded3.cc
free_race.c
free_race.c.supp
free_race2.c
getline_nohang.cc Switch getline_nohang from XFAIL to UNSUPPORTED for NetBSD 2018-10-30 21:41:31 +00:00
global_race.cc [compiler-rt] Get rid of "%T" expansions 2018-07-10 12:53:46 +00:00
global_race2.cc
global_race3.cc
halt_on_error.cc
heap_race.cc
ignore_free.cc
ignore_lib0.cc [compiler-rt] Get rid of "%T" expansions 2018-07-10 12:53:46 +00:00
ignore_lib0.cc.supp
ignore_lib1.cc [compiler-rt] Get rid of "%T" expansions 2018-07-10 12:53:46 +00:00
ignore_lib1.cc.supp
ignore_lib2.cc [compiler-rt] Get rid of "%T" expansions 2018-07-10 12:53:46 +00:00
ignore_lib2.cc.supp
ignore_lib3.cc [compiler-rt] Get rid of "%T" expansions 2018-07-10 12:53:46 +00:00
ignore_lib3.cc.supp
ignore_lib4.cc [compiler-rt] Get rid of "%T" expansions 2018-07-10 12:53:46 +00:00
ignore_lib5.cc Mark test/tsan/ignore_lib5 as unsupported for NetBSD 2018-10-29 08:42:46 +00:00
ignore_lib5.cc.supp
ignore_lib_lib.h
ignore_malloc.cc
ignore_race.cc
ignore_sync.cc
ignored-interceptors-mmap.cc Mark breaking TSan tests on NetBSD with XFAIL 2018-10-30 13:28:32 +00:00
inlined_memcpy_race.cc
inlined_memcpy_race2.cc
interface_atomic_test.c
java.h
java_alloc.cc
java_finalizer.cc
java_find.cc
java_heap_init.cc
java_lock.cc
java_lock_move.cc
java_lock_rec.cc
java_lock_rec_race.cc
java_move_overlap.cc
java_move_overlap_race.cc
java_race.cc
java_race_move.cc
java_race_pc.cc
java_rwlock.cc
java_symbolization.cc
java_symbolization_legacy.cc
java_volatile.cc
large_malloc_meta.cc Mark two tests, which require too much available VM, as "UNSUPPORTED: ios". 2018-10-03 00:30:03 +00:00
lit.cfg [sanitizer] Unify and generalize Apple platforms in CMake and lit test configs 2018-06-20 13:33:42 +00:00
lit.site.cfg.in [sanitizer] Unify and generalize Apple platforms in CMake and lit test configs 2018-06-20 13:33:42 +00:00
load_shared_lib.cc
longjmp.cc
longjmp2.cc
longjmp3.cc
longjmp4.cc
lots_of_threads.c
malloc_overflow.cc
malloc_stack.cc
map32bit.cc
memcmp_race.cc
memcpy_race.cc
mmap_large.cc Mark two tests, which require too much available VM, as "UNSUPPORTED: ios". 2018-10-03 00:30:03 +00:00
mmap_stress.cc
mop1.c
mop_with_offset.cc
mop_with_offset2.cc
must_deadlock.cc
mutex_annotations.cc
mutex_bad_read_lock.cc
mutex_bad_read_unlock.cc
mutex_bad_unlock.cc
mutex_cycle2.c tsan: align default value of detect_deadlocks flag with actual behavior 2018-12-19 09:34:13 +00:00
mutex_cycle_long.c
mutex_destroy_locked.cc
mutex_destroy_locked2.cc tsan: improve "destroy of a locked mutex" reports 2018-04-27 08:59:35 +00:00
mutex_double_lock.cc
mutex_lock_destroyed.cc Mark breaking TSan tests on NetBSD with XFAIL 2018-10-30 13:28:32 +00:00
mutexset1.cc
mutexset2.cc
mutexset3.cc
mutexset4.cc
mutexset5.cc
mutexset6.cc
mutexset7.cc
mutexset8.cc
pie_test.cc
printf-1.c
pthread_atfork_deadlock.c
pthread_key.cc
race_on_barrier.c
race_on_barrier2.c
race_on_fputs.cc [sanitizer] Add fgets, fputs and puts into sanitizer_common 2018-06-11 22:58:04 +00:00
race_on_heap.cc
race_on_mutex.c
race_on_mutex2.c
race_on_puts.cc
race_on_read.cc
race_on_speculative_load.cc
race_on_write.cc
race_stress.cc
race_top_suppression.cc
race_top_suppression1.cc
race_with_finished_thread.cc
real_deadlock_detector_stress_test.cc
restore_stack.cc
setuid.c
setuid2.c
signal_block.cc
signal_cond.cc
signal_errno.cc
signal_longjmp.cc
signal_malloc.cc
signal_pause.cc
signal_recursive.cc
signal_reset.cc
signal_sync.cc
signal_sync2.cc
signal_thread.cc
signal_write.cc
sigsuspend.cc
simple_race.c
simple_race.cc
simple_stack.c
simple_stack2.cc [compiler-rt] Get rid of "%T" expansions 2018-07-10 12:53:46 +00:00
sleep_sync.cc
sleep_sync2.cc
stack_race.cc
stack_race2.cc
stack_sync_reuse.cc
static_init1.cc
static_init2.cc
static_init3.cc
static_init4.cc
static_init5.cc
static_init6.cc Fix another case where libstdc++ is being inappropriately requested (see 2018-05-14 15:48:49 +00:00
strerror_r.cc Disable the GNU strerror_r TSan test for NetBSD 2018-10-29 09:12:38 +00:00
sunrpc.cc
suppress_same_address.cc
suppress_same_stacks.cc
suppressions_global.cc
suppressions_global.cc.supp
suppressions_mutex.cc tsan: improve "destroy of a locked mutex" reports 2018-04-27 08:59:35 +00:00
suppressions_mutex.cc.supp tsan: improve "destroy of a locked mutex" reports 2018-04-27 08:59:35 +00:00
suppressions_race.cc
suppressions_race.cc.supp
suppressions_race2.cc
suppressions_race2.cc.supp
test.h [tsan] Fix a failure in test java_race_pc on AArch64 after r333071 2018-05-24 12:26:20 +00:00
thread_detach.c
thread_detach2.c
thread_end_with_ignore.cc
thread_end_with_ignore2.cc
thread_end_with_ignore3.cc
thread_leak.c
thread_leak2.c
thread_leak3.c
thread_leak4.c
thread_leak5.c
thread_name.cc
thread_name2.cc
tiny_race.c
tls_race.cc
tls_race2.cc
tsan-vs-gvn.cc
unaligned_norace.cc
unaligned_race.cc
vfork.cc
virtual_inheritance_compile_bug.cc
vptr_benign_race.cc
vptr_harmful_race.cc
vptr_harmful_race2.cc
vptr_harmful_race3.cc
vptr_harmful_race4.cc
write_in_reader_lock.cc