This is an archive of the discontinued LLVM Phabricator instance.

[llvm-exegesis] Fix X86LbrCounter destructor to correctly unmap memory and not double-close fd (PR50620)
ClosedPublic

Authored by RKSimon on Jun 13 2021, 11:16 AM.

Details

Summary

As was reported on PR50620, the X86LbrCounter destructor was double-closing the filedescriptor and not unmapping the buffer.

Diff Detail

Event Timeline

RKSimon created this revision.Jun 13 2021, 11:16 AM
RKSimon requested review of this revision.Jun 13 2021, 11:16 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 13 2021, 11:16 AM
oontvoo accepted this revision.Jun 13 2021, 8:58 PM
oontvoo added a subscriber: oontvoo.

LGTM - Thanks!

This revision is now accepted and ready to land.Jun 13 2021, 8:58 PM

Cheers - I've now confirmed that this works locally

RKSimon edited the summary of this revision. (Show Details)Jun 15 2021, 6:14 AM