llvm-project/libcxx/www
Eric Fiselier 7ffcd984c4 LWG 2843 "Unclear behavior of std::pmr::memory_resource::do_allocate()"
Patch by Arthur O'Dwyer.
Reviewed as https://reviews.llvm.org/D47344

new_delete_resource().allocate(n, a) has basically two permissible results:

* Return an appropriately sized and aligned block.
* Throw bad_alloc.

Before this patch, libc++'s new_delete_resource would do a third and impermissible thing, which was
to return an appropriately sized but inappropriately under-aligned block. This is now fixed.

(This came up while I was stress-testing unsynchronized_pool_resource on my MacBook. If we can't
trust the default resource to return appropriately aligned blocks, pretty much everything breaks.
For similar reasons, I would strongly support just patching __libcpp_allocate directly, but I don't
care to die on that hill, so I made this patch as a <memory_resource>-specific workaround.)

llvm-svn: 355763
2019-03-09 00:38:19 +00:00
..
TS_deprecation.html Adjust documentation for git migration. 2019-01-29 16:37:27 +00:00
atomic_design.html Adjust documentation for git migration. 2019-01-29 16:37:27 +00:00
atomic_design_a.html Adjust documentation for git migration. 2019-01-29 16:37:27 +00:00
atomic_design_b.html Adjust documentation for git migration. 2019-01-29 16:37:27 +00:00
atomic_design_c.html Adjust documentation for git migration. 2019-01-29 16:37:27 +00:00
content.css
cxx1y_status.html Adjust documentation for git migration. 2019-01-29 16:37:27 +00:00
cxx1z_status.html Mark several issues (and one paper) as complete. Reviewed as D58099; but I added LWG3101 and LWG3144 and P1357R1 as well. 2019-02-26 17:01:00 +00:00
cxx2a_status.html LWG 2843 "Unclear behavior of std::pmr::memory_resource::do_allocate()" 2019-03-09 00:38:19 +00:00
index.html Adjust documentation for git migration. 2019-01-29 16:37:27 +00:00
menu.css
ts1z_status.html Adjust documentation for git migration. 2019-01-29 16:37:27 +00:00
type_traits_design.html Adjust documentation for git migration. 2019-01-29 16:37:27 +00:00
upcoming_meeting.html Adjust documentation for git migration. 2019-01-29 16:37:27 +00:00