llvm-project/compiler-rt/lib/tsan/tests
Dmitry Vyukov 817f942a28 tsan: introduce New/Alloc/Free helpers
We frequenty allocate sizeof(T) memory and call T ctor on that memory
(C++ new keyword effectively). Currently it's quite verbose and
usually takes 2 lines of code.
Add New<T>() helper that does it much more concisely.

Rename internal_free to Free that also sets the pointer to nullptr.
Shorter and safer.

Rename internal_alloc to Alloc, just shorter.

Reviewed By: vitalybuka, melver

Differential Revision: https://reviews.llvm.org/D107085
2021-07-30 11:51:55 +02:00
..
rtl tsan: rename test Mutex to UserMutex 2021-07-23 09:12:05 +02:00
unit tsan: introduce New/Alloc/Free helpers 2021-07-30 11:51:55 +02:00
CMakeLists.txt tsan: fix build with COMPILER_RT_TSAN_DEBUG_OUTPUT 2021-04-27 22:38:56 +02:00