This is an archive of the discontinued LLVM Phabricator instance.

[libcxx] Add first bits of <experimental/memory_resource>
AbandonedPublic

Authored by EricWF on Jul 21 2015, 3:48 PM.

Details

Reviewers
mclow.lists
Summary

This patch adds the following bits of <experimental/memory_resource>.

  1. class memory_resource
  2. memory_resource* new_delete_resource()
  3. memory_resource* null_memory_resource()
  4. memory_resource* get_default_resource()
  5. memory_resource* set_default_resource(memory_resource*)

The rest of the header is essentially done but I'm breaking it down for review.

Diff Detail

Event Timeline

EricWF updated this revision to Diff 30295.Jul 21 2015, 3:48 PM
EricWF retitled this revision from to [libcxx] Add first bits of <experimental/memory_resource>.
EricWF updated this object.
EricWF added a reviewer: mclow.lists.
EricWF added a subscriber: cfe-commits.
EricWF updated this revision to Diff 30304.Jul 21 2015, 6:10 PM

I changed the lifetime of the global resources. The global resources are no longer destroyed during program termination. This should prevent issues where other static destructors require memory resources.

EricWF added a comment.Sep 4 2015, 4:10 PM

@mclow.lists ping. Hopefully this should be a pretty simple review.

EricWF added a comment.Oct 1 2015, 1:47 AM

@mclow.lists ping. I would like to keep moving on the LFTS v1 work.

EricWF abandoned this revision.Apr 25 2016, 12:07 PM

I've been working on this a bunch and will repost it with the new changes later next week.