This is an archive of the discontinued LLVM Phabricator instance.

support/allocators: implements requirements
AbandonedPublic

Authored by frutiger on Feb 7 2016, 9:17 AM.

Details

Summary

This commit adds the required constructor overloads and member functions to
make the supporting allocators actually valid allocators. The implementation
of 'allocate' defers to 'std::malloc', and correspondingly that of 'deallocate'
defers to 'std::free'.

This commit also changes supporting allocators 'A1' to track the number of
elements requested and 'A2' to track the hint that was requested in order to
facilitate testing.

Two (seemingly unrelated) tests seem to fail:

Failing Tests (2):

libc++ :: std/utilities/tuple/tuple.general/tuple.smartptr.pass.cpp
libc++ :: std/utilities/tuple/tuple.tuple/tuple.creation/tuple_cat.pass.cpp

Diff Detail

Event Timeline

frutiger updated this revision to Diff 47136.Feb 7 2016, 9:17 AM
frutiger retitled this revision from to support/allocators: implements requirements.
frutiger updated this object.
frutiger added reviewers: mclow.lists, EricWF.
frutiger added a subscriber: cfe-commits.
frutiger abandoned this revision.Oct 23 2017, 4:28 PM
frutiger added a subscriber: AlisdairM.

@AlisdairM maybe you want to commandeer this? This revision is probably not going anywhere any time soon...