tsan: add a test for flushing memory
authorDmitry Vyukov <dvyukov@google.com>
Fri, 24 Sep 2021 12:54:47 +0000 (14:54 +0200)
committerDmitry Vyukov <dvyukov@google.com>
Fri, 24 Sep 2021 13:59:19 +0000 (15:59 +0200)
commitad890aa2327feb6b6aee676fe85b2352fba2403e
treec55715b7de65d962d0e223b9933c75909a8a4673
parentdf56fc6ebbee6c458b0473185277b7860f7e3408
tsan: add a test for flushing memory

Add a test for __tsan_flush_memory() and for background
flushing of the runtime memory.

Reviewed By: melver

Differential Revision: https://reviews.llvm.org/D110409
compiler-rt/include/sanitizer/tsan_interface.h
compiler-rt/test/tsan/flush_memory.cpp [new file with mode: 0644]