This is an archive of the discontinued LLVM Phabricator instance.

[Orc] Use IntervalMap to store free memory regions in MapperJITLinkMemoryManager
ClosedPublic

Authored by argentite on Aug 13 2022, 2:07 AM.

Details

Summary

MapperJITLinkMemoryManager uses a free list to keep track of available
memory regions. Using an IntervalMap instead of vector allow automatic
coalescing of memory regions as they are freed.

Diff Detail

Event Timeline

argentite created this revision.Aug 13 2022, 2:07 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 13 2022, 2:07 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
argentite updated this revision to Diff 452401.Aug 13 2022, 3:44 AM

Added a test

argentite published this revision for review.Aug 13 2022, 4:39 AM
argentite added reviewers: lhames, sgraenitz.
Herald added a project: Restricted Project. · View Herald TranscriptAug 13 2022, 4:39 AM
lhames accepted this revision.Aug 13 2022, 8:40 PM

LGTM -- Thanks @argentite!

This revision is now accepted and ready to land.Aug 13 2022, 8:40 PM