This is an archive of the discontinued LLVM Phabricator instance.

[XRay] Handle allocator exhaustion in segmented array
ClosedPublic

Authored by dberris on Oct 21 2018, 7:05 PM.

Details

Summary

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.

Diff Detail

Event Timeline

dberris created this revision.Oct 21 2018, 7:05 PM
This revision is now accepted and ready to land.Oct 21 2018, 7:09 PM
This revision was automatically updated to reflect the committed changes.
Herald added a subscriber: Restricted Project. · View Herald TranscriptOct 21 2018, 7:13 PM