[PATCH] D53484: [XRay] Handle allocator exhaustion in segmented array

Dean Michael Berris via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Oct 21 19:05:56 PDT 2018


dberris created this revision.
dberris added reviewers: mboerger, eizan.

This change allows us to handle allocator exhaustion properly in the
segmented array implementation. Before this change, we relied on the
caller of the `trim` function to provide a valid number of elements to
trim. This change allows us to do the right thing in case the elements
to trim is greater than the size of the container.


https://reviews.llvm.org/D53484

Files:
  compiler-rt/lib/xray/tests/unit/segmented_array_test.cc
  compiler-rt/lib/xray/tests/unit/test_helpers.h
  compiler-rt/lib/xray/xray_segmented_array.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53484.170363.patch
Type: text/x-patch
Size: 3834 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181022/00a13e90/attachment.bin>


More information about the llvm-commits mailing list