Skip to content

Commit d736002

Browse files
committed
tsan: move memory access functions to a separate file
tsan_rtl.cpp is huge and does lots of things. Move everything related to memory access and tracing to a separate tsan_rtl_access.cpp file. No functional changes, only code movement. Reviewed By: vitalybuka, melver Differential Revision: https://reviews.llvm.org/D112625
1 parent 2da6ef3 commit d736002

File tree

7 files changed

+645
-622
lines changed

7 files changed

+645
-622
lines changed

compiler-rt/lib/tsan/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ set(TSAN_SOURCES
4343
rtl/tsan_preinit.cpp
4444
rtl/tsan_report.cpp
4545
rtl/tsan_rtl.cpp
46+
rtl/tsan_rtl_access.cpp
4647
rtl/tsan_rtl_mutex.cpp
4748
rtl/tsan_rtl_proc.cpp
4849
rtl/tsan_rtl_report.cpp

compiler-rt/lib/tsan/go/build.bat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ type ^
66
..\rtl\tsan_md5.cpp ^
77
..\rtl\tsan_report.cpp ^
88
..\rtl\tsan_rtl.cpp ^
9+
..\rtl\tsan_rtl_access.cpp ^
910
..\rtl\tsan_rtl_mutex.cpp ^
1011
..\rtl\tsan_rtl_report.cpp ^
1112
..\rtl\tsan_rtl_thread.cpp ^

compiler-rt/lib/tsan/go/buildgo.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ SRCS="
1111
../rtl/tsan_md5.cpp
1212
../rtl/tsan_report.cpp
1313
../rtl/tsan_rtl.cpp
14+
../rtl/tsan_rtl_access.cpp
1415
../rtl/tsan_rtl_mutex.cpp
1516
../rtl/tsan_rtl_report.cpp
1617
../rtl/tsan_rtl_thread.cpp

0 commit comments

Comments
 (0)