[XRay] Refcount backing store for buffers
authorDean Michael Berris <dberris@google.com>
Sun, 28 Oct 2018 09:12:43 +0000 (09:12 +0000)
committerDean Michael Berris <dberris@google.com>
Sun, 28 Oct 2018 09:12:43 +0000 (09:12 +0000)
commit299e9b8be09f4f4228406ff7598764e3d600fba0
tree260cb382439bd6d22b5ebb395a9a95cc495f5d7f
parent704247c37ab82c5ddfc56dcefb46374577fe06cf
[XRay] Refcount backing store for buffers

Summary:
This change implements the ref-counting for backing stores associated
with generational buffer management. We do this as an implementation
detail of the buffer queue, instead of exposing this to the interface.

This change allows us to keep the buffer queue interface and usage model
the same.

Depends on D53551.

Reviewers: mboerger, eizan

Subscribers: jfb, llvm-commits

Differential Revision: https://reviews.llvm.org/D53560

llvm-svn: 345471
compiler-rt/lib/xray/xray_buffer_queue.cc
compiler-rt/lib/xray/xray_buffer_queue.h