[libcxx-commits] [PATCH] D126882: [libc++] Do not yield from __sp_mut::lock()
Mark de Wever via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Jun 3 11:35:50 PDT 2022
Mordante added inline comments.
================
Comment at: libcxx/src/memory.cpp:141
-static constexpr std::size_t __sp_mut_count = 16;
+static constexpr std::size_t __sp_mut_count = 32;
static constinit __libcpp_mutex_t mut_back[__sp_mut_count] =
----------------
ldionne wrote:
> Mordante wrote:
> > Since you change this value it might be a good moment to document why 32 is "the right" value.
> Honestly, I just decided to double it to decrease contention a bit, but it wasn't done in any scientific kind of way.
Fair point. Since you looked at it with a performance engineer I hoped there was some additional info on this change.
If there isn't more info then it's fine by me too.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D126882/new/
https://reviews.llvm.org/D126882
More information about the libcxx-commits
mailing list