[PATCH] D25154: [libc++] Fix stack_allocator
Eric Fiselier via cfe-commits
cfe-commits at lists.llvm.org
Fri Oct 7 18:04:08 PDT 2016
EricWF updated this revision to Diff 74006.
EricWF added a comment.
Rewrite the patch entirely. Instead of using an actual "stack buffer" I've transformed `stack_allocator` into `limited_allocator<T, N>` which allows at most `N` elements to be allocated from it. This resolves the issues about stack usage but it doesn't help with the MSVC debug extra allocations.
https://reviews.llvm.org/D25154
Files:
test/std/containers/container.adaptors/priority.queue/priqueue.cons/ctor_comp.pass.cpp
test/std/containers/container.adaptors/priority.queue/priqueue.cons/ctor_default.pass.cpp
test/std/containers/container.adaptors/queue/queue.cons/ctor_default.pass.cpp
test/std/containers/container.adaptors/stack/stack.cons/ctor_default.pass.cpp
test/std/containers/sequences/deque/deque.cons/default.pass.cpp
test/std/containers/sequences/deque/deque.cons/iter_iter.pass.cpp
test/std/containers/sequences/deque/deque.cons/size.pass.cpp
test/std/containers/sequences/deque/deque.cons/size_value.pass.cpp
test/std/containers/sequences/deque/deque.modifiers/insert_iter_iter.pass.cpp
test/std/containers/sequences/list/list.cons/default_stack_alloc.pass.cpp
test/std/containers/sequences/list/list.cons/input_iterator.pass.cpp
test/std/containers/sequences/list/list.cons/size_type.pass.cpp
test/std/containers/sequences/list/list.cons/size_value_alloc.pass.cpp
test/std/containers/sequences/vector/vector.capacity/reserve.pass.cpp
test/std/containers/sequences/vector/vector.capacity/resize_size.pass.cpp
test/std/containers/sequences/vector/vector.capacity/resize_size_value.pass.cpp
test/std/containers/sequences/vector/vector.capacity/shrink_to_fit.pass.cpp
test/std/containers/sequences/vector/vector.cons/construct_default.pass.cpp
test/std/containers/sequences/vector/vector.cons/construct_iter_iter.pass.cpp
test/std/containers/sequences/vector/vector.cons/construct_iter_iter_alloc.pass.cpp
test/std/containers/sequences/vector/vector.cons/construct_size_value.pass.cpp
test/std/containers/sequences/vector/vector.modifiers/emplace.pass.cpp
test/std/containers/sequences/vector/vector.modifiers/emplace_back.pass.cpp
test/std/containers/sequences/vector/vector.modifiers/insert_iter_iter_iter.pass.cpp
test/std/containers/sequences/vector/vector.modifiers/insert_iter_rvalue.pass.cpp
test/std/containers/sequences/vector/vector.modifiers/insert_iter_size_value.pass.cpp
test/std/containers/sequences/vector/vector.modifiers/insert_iter_value.pass.cpp
test/std/containers/sequences/vector/vector.modifiers/pop_back.pass.cpp
test/std/containers/sequences/vector/vector.modifiers/push_back.pass.cpp
test/std/containers/sequences/vector/vector.modifiers/push_back_rvalue.pass.cpp
test/std/containers/stack_allocator.h
test/support/test_allocator.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D25154.74006.patch
Type: text/x-patch
Size: 31398 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20161008/e1b09d57/attachment-0001.bin>
More information about the cfe-commits
mailing list