This is an archive of the discontinued LLVM Phabricator instance.

Add a thread-local ring buffer of heap allocations
ClosedPublic

Authored by kcc on Aug 28 2018, 5:23 PM.

Details

Summary

We need this in order to properly report heap-use-after-free,
since we don't have a quarantine.

This is a first part of the code, more like a proof of concept.
But I'd like to commit at as is and proceed with refactoring,
adding a ThreadRegistry, and extending the functionality.

Diff Detail

Event Timeline

kcc created this revision.Aug 28 2018, 5:23 PM
Herald added subscribers: Restricted Project, delcypher, kubamracek. · View Herald TranscriptAug 28 2018, 5:23 PM

Looks good for a start.
A test would be nice.

This revision was not accepted when it landed; it landed in state Needs Review.Aug 29 2018, 2:08 PM
This revision was automatically updated to reflect the committed changes.
kcc added a comment.Aug 29 2018, 2:08 PM

of course, will add tests when there is more to test