tsan: move mem profile initialization into separate function
authorDmitry Vyukov <dvyukov@google.com>
Tue, 21 Sep 2021 09:50:09 +0000 (11:50 +0200)
committerDmitry Vyukov <dvyukov@google.com>
Wed, 22 Sep 2021 08:18:08 +0000 (10:18 +0200)
commite8101f2149dfcd6a915b975a1f83ac09a5cd04b9
tree1c8fdebc374d016672e17e6c80aa756da88172fe
parentb8aa9b0c37f4914cdd68aef5cf32fb411d2674c0
tsan: move mem profile initialization into separate function

BackgroundThread function is quite large,
move mem profile initialization into a separate function.

Depends on D110151.

Reviewed By: melver, vitalybuka

Differential Revision: https://reviews.llvm.org/D110152
compiler-rt/lib/tsan/rtl/tsan_rtl.cpp
compiler-rt/lib/tsan/rtl/tsan_rtl.h