stats_size argument is unnecessary in GetMemoryProfile and in the callback.
It just clutters code. The callback knowns how many stats to expect.
Depends on D112789.
Paths
| Differential D112790
sanitizer_common: remove unnecessary GetMemoryProfile arg ClosedPublic Authored by dvyukov on Oct 29 2021, 2:47 AM.
Details Summary stats_size argument is unnecessary in GetMemoryProfile and in the callback. Depends on D112789.
Diff Detail
Event Timelinedvyukov added a child revision: D112792: sanitizer_common: add memory profile parsing test.Oct 29 2021, 2:47 AM This revision is now accepted and ready to land.Oct 29 2021, 3:16 AM Closed by commit rGae833dbb8181: sanitizer_common: remove unnecessary GetMemoryProfile arg (authored by dvyukov). · Explain WhyOct 29 2021, 4:44 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 383306 compiler-rt/lib/sanitizer_common/sanitizer_allocator_primary64.h
compiler-rt/lib/sanitizer_common/sanitizer_common.h
compiler-rt/lib/sanitizer_common/sanitizer_fuchsia.cpp
compiler-rt/lib/sanitizer_common/sanitizer_mac.cpp
compiler-rt/lib/sanitizer_common/sanitizer_procmaps_common.cpp
compiler-rt/lib/sanitizer_common/sanitizer_win.cpp
compiler-rt/lib/tsan/rtl/tsan_platform_linux.cpp
|