[libcxx-commits] [libcxx] [libcxx] Align `__recommend() + 1` by __endian_factor (PR #90292)
James Y Knight via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Jun 11 19:05:52 PDT 2024
jyknight wrote:
> There seems to be a claim that Google's using this flag at large scale internally. If it's possible to detail the impact of this regression a bit more, it might help to give at least one "real world" point of view on this.
Google has indeed been using -fsized-deallocation with tcmalloc (which uses the deallocation size information) internally for a long time. However, we also use the libc++ unstable abi, which enables the "alternate" string layout. In that version, the "endian_factor" constant is 1 on little endian machines, rather than 2, so this bug doesn't appear.
https://github.com/llvm/llvm-project/pull/90292
More information about the libcxx-commits
mailing list