[libcxx-commits] [libcxx] [libcxx] Align allocation to match `__set_long_cap` and `__get_long_cap` (PR #90292)

Vitaly Buka via libcxx-commits libcxx-commits at lists.llvm.org
Tue Apr 30 10:31:41 PDT 2024


vitalybuka wrote:

> AFAICT we always return `__align_it() - 1` from `__recommend` though? Adding 1 would bring us back to an aligned size. (Don't ask me why it's written this way)

The assert inserted ther confirm that it's not true in some cases, on check-cxx, even without sanitizers.

https://github.com/llvm/llvm-project/pull/90292


More information about the libcxx-commits mailing list