[PATCH] D44261: [sanitizer] Align & pad the allocator structures to the cacheline size

Aleksey Shlyapnikov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 8 11:02:11 PST 2018


alekseyshl added a comment.

I think just declaring "struct ALIGNED(kCacheLineSize) ..." is enough. Compiler should take take care of the rest, the structure size will be extended to the multiple of the alignment, the array will be aligned appropriately, right?


Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D44261





More information about the llvm-commits mailing list