[PATCH] D100879: [Clang] Propagate guaranteed alignment for malloc and others

Mauricio Collares via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Nov 20 15:36:25 PST 2021


collares added a comment.

Reproducing oxalica's comment at https://github.com/NixOS/nixpkgs/pull/146817, to make sure it is not missed:

"The divergence here is about how to understand the sentence from C17, 7.22.3. There is already an proposal rephrasing it and making it clear that 8-byte allocation CAN result in only 8-byte alignment, not 16-byte-aligned. It also mentions that forcing jemalloc to have 16-byte alignment will significantly slow down its performance.
http://www.open-std.org/jtc1/sc22/wg14/www/docs/n2293.htm

This N2293 is already accepted in the latest working draft, and should be present in the next C2x standard. Clang should eventually change to support it."


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D100879/new/

https://reviews.llvm.org/D100879



More information about the cfe-commits mailing list