diff options
author | Casey Carter <Casey@Carter.net> | 2019-05-02 21:19:41 +0000 |
---|---|---|
committer | Casey Carter <Casey@Carter.net> | 2019-05-02 21:19:41 +0000 |
commit | b574e112177dbca8eae689d2324d8e5bb7138a06 (patch) | |
tree | 5cfc4066df64b8836b66008d26e0ea657dc1a88d /llvm/lib/Object/WindowsResource.cpp | |
parent | fc40cbd9d8c63e65eed3590ba925321afe782e1d (diff) | |
download | llvm-b574e112177dbca8eae689d2324d8e5bb7138a06.zip llvm-b574e112177dbca8eae689d2324d8e5bb7138a06.tar.gz llvm-b574e112177dbca8eae689d2324d8e5bb7138a06.tar.bz2 |
[libc++][test] Remove non-portable assumption that thread's constructor allocates with ::new
Drive-by:
* Fix potential race between check and update of `throw_one` in `operator new`
* Fix latent bug in `operator delete`, which shouldn't decrement `outstanding_new` when passed a null pointer
* Specifically catch the expected `bad_alloc` in `main` instead of `...`
Differential Revision: https://reviews.llvm.org/D50860
llvm-svn: 359827
Diffstat (limited to 'llvm/lib/Object/WindowsResource.cpp')
0 files changed, 0 insertions, 0 deletions