[PATCH] D48031: [scudo] Add C++17 aligned new/delete operators support

Kostya Kortchinsky via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 11 09:21:24 PDT 2018


cryptoad created this revision.
cryptoad added a reviewer: alekseyshl.
Herald added subscribers: Sanitizers, delcypher.

This CL adds support for aligned new/delete operators (C++17). Currently we
do not support alignment inconsistency detection on deallocation, as this
requires a header change, but the APIs are introduced and are functional.

Add a smoke test for the aligned version of the operators.


Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D48031

Files:
  lib/scudo/scudo_allocator.cpp
  lib/scudo/scudo_allocator.h
  lib/scudo/scudo_malloc.cpp
  lib/scudo/scudo_new_delete.cpp
  test/scudo/aligned-new.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48031.150773.patch
Type: text/x-patch
Size: 12757 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180611/2c9c907b/attachment.bin>


More information about the llvm-commits mailing list