llvm-project/libcxx
Shoaib Meenai 7ce92f73f2 [libc++] Pair _aligned_malloc with _aligned_free
Attempting to pair an `_aligned_malloc` with a regular free causes heap
corruption. Pairing with `_aligned_free` is required instead.

Makes the following libc++ tests pass on Windows:

```
std/language.support/support.dynamic/new.delete/new.delete.array/new_align_val_t.pass.cpp
std/language.support/support.dynamic/new.delete/new.delete.array/new_align_val_t_nothrow.pass.cpp
std/language.support/support.dynamic/new.delete/new.delete.single/new_align_val_t.pass.cpp
std/language.support/support.dynamic/new.delete/new.delete.single/new_align_val_t_nothrow.pass.cpp
```

Differential Revision: https://reviews.llvm.org/D28512

llvm-svn: 291743
2017-01-12 06:22:36 +00:00
..
benchmarks improve performance of string::find 2016-12-30 18:01:36 +00:00
cmake Revert "[CMake][libcxx] Move Python check to main CMake file" 2017-01-11 23:56:33 +00:00
docs [libc++] Correct macro name in documenation 2017-01-07 02:45:35 +00:00
include disable use of __builtin_memcmp temporarily to get the tests passing again 2017-01-12 05:40:58 +00:00
lib Revert "[CMake][libcxx] Do not rely on the existence of c++abi or unwind targets" 2017-01-11 23:56:31 +00:00
src [libc++] Pair _aligned_malloc with _aligned_free 2017-01-12 06:22:36 +00:00
test Implement P0426: Constexpr for std::char_traits 2017-01-12 04:37:14 +00:00
utils Fix creating __generated_config on Windows 2017-01-03 03:55:29 +00:00
www Implement P0403R1 - 'Literal suffixes for basic_string_view'. Requires clang 4.0 (specifically, r290744) 2017-01-09 18:07:34 +00:00
.arcconfig Upgrade arcconfig to use https 2016-07-18 02:02:49 +00:00
.clang-format clang-format: tweak configuration 2017-01-03 04:23:52 +00:00
.gitignore Implement N4606 optional 2016-10-12 07:46:20 +00:00
CMakeLists.txt Revert "[CMake][libcxx] Move Python check to main CMake file" 2017-01-11 23:56:33 +00:00
CREDITS.TXT Added "Michael Park" to `CREDITS.TXT`. 2017-01-07 10:19:24 +00:00
LICENSE.TXT Update year to 2017 2017-01-03 11:20:43 +00:00
NOTES.TXT Update doc and various cleanup 2016-12-23 20:00:13 +00:00
TODO.TXT Update doc and various cleanup 2016-12-23 20:00:13 +00:00