summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api/frame/TestFrames.py
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2018-10-24 22:44:01 +0000
committerEric Fiselier <eric@efcs.ca>2018-10-24 22:44:01 +0000
commit7e6448bb02e67e4b3ad26667d2ac95627104abfd (patch)
treef296a5430f6fc004d0efda9c6860a376b611fe10 /lldb/packages/Python/lldbsuite/test/python_api/frame/TestFrames.py
parent7faf7ae0ad49672f5f9922bb1572595bfc8e7d1b (diff)
downloadbcm5719-llvm-7e6448bb02e67e4b3ad26667d2ac95627104abfd.tar.gz
bcm5719-llvm-7e6448bb02e67e4b3ad26667d2ac95627104abfd.zip
Implement sized deallocation for std::allocator and friends.
Summary: C++14 sized deallocation is disabled by default due to ABI concerns. However, when a user manually enables it then libc++ should take advantage of it since sized deallocation can provide a significant performance win depending on the underlying malloc implementation. (Note that libc++'s definitions of sized delete don't do anything special yet, but users are free to provide their own). This patch updates __libcpp_deallocate to selectively call sized operator delete when it's available. `__libcpp_deallocate_unsized` should be used when the size of the allocation is unknown. On Apple this patch makes no attempt to determine if the sized operator delete is unavailable, only that the language feature is enabled. This could cause a compile error when using `std::allocator`, but the same compile error would occur whenever the user calls `new`, so I don't think it's a problem. Reviewers: ldionne, mclow.lists Reviewed By: ldionne Subscribers: rsmith, ckennelly, libcxx-commits, christof Differential Revision: https://reviews.llvm.org/D53120 llvm-svn: 345214
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/frame/TestFrames.py')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud