Skip to content

Commit 645f589

Browse files
committed
tsan: fix build breakage due to AppMemBeg
AppMemBeg was renamed to LoAppMemBeg in 3830c93 ("tsan: rename kAppMemBeg to kLoAppMemBeg"). Rename remaining uses of the old name in tsan_platform_mac.cpp. Differential Revision: https://reviews.llvm.org/D107948
1 parent d54c62c commit 645f589

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler-rt/lib/tsan/rtl/tsan_platform_mac.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ void WriteMemoryProfile(char *buf, uptr buf_size, uptr nthread, uptr nlive) {
156156
RegionMemUsage(HeapMemBeg(), HeapMemEnd(), &heap_res, &heap_dirty);
157157
#else // !SANITIZER_GO
158158
uptr app_res, app_dirty;
159-
RegionMemUsage(AppMemBeg(), AppMemEnd(), &app_res, &app_dirty);
159+
RegionMemUsage(LoAppMemBeg(), LoAppMemEnd(), &app_res, &app_dirty);
160160
#endif
161161

162162
StackDepotStats *stacks = StackDepotGetStats();
@@ -169,7 +169,7 @@ void WriteMemoryProfile(char *buf, uptr buf_size, uptr nthread, uptr nlive) {
169169
"high app (0x%016zx-0x%016zx): resident %zd kB, dirty %zd kB\n"
170170
"heap (0x%016zx-0x%016zx): resident %zd kB, dirty %zd kB\n"
171171
#else // !SANITIZER_GO
172-
"app (0x%016zx-0x%016zx): resident %zd kB, dirty %zd kB\n"
172+
"app (0x%016zx-0x%016zx): resident %zd kB, dirty %zd kB\n"
173173
#endif
174174
"stacks: %zd unique IDs, %zd kB allocated\n"
175175
"threads: %zd total, %zd live\n"
@@ -182,7 +182,7 @@ void WriteMemoryProfile(char *buf, uptr buf_size, uptr nthread, uptr nlive) {
182182
HiAppMemBeg(), HiAppMemEnd(), high_res / 1024, high_dirty / 1024,
183183
HeapMemBeg(), HeapMemEnd(), heap_res / 1024, heap_dirty / 1024,
184184
#else // !SANITIZER_GO
185-
AppMemBeg(), AppMemEnd(), app_res / 1024, app_dirty / 1024,
185+
LoAppMemBeg(), LoAppMemEnd(), app_res / 1024, app_dirty / 1024,
186186
#endif
187187
stacks->n_uniq_ids, stacks->allocated / 1024,
188188
nthread, nlive);

0 commit comments

Comments
 (0)