[PATCH] D129897: [lsan][Darwin][nfc] Fix thread vector size
Vitaly Buka via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 15 13:32:39 PDT 2022
vitalybuka added inline comments.
================
Comment at: compiler-rt/lib/sanitizer_common/sanitizer_stoptheworld_mac.cpp:32-34
+ SuspendedThreadsListMac() : threads_() {
+ threads_.reserve(1024);
+ }
----------------
threads_() is NOOP, as it already has default constructor
reserve is not needed as InternalMmapVector will reserve 4k on the first pushback
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D129897/new/
https://reviews.llvm.org/D129897
More information about the llvm-commits
mailing list