This is an archive of the discontinued LLVM Phabricator instance.

[InstrProf] Encapsulates access to AddrToMD5Map.
ClosedPublic

Authored by mtrofin on Mar 21 2018, 2:56 PM.

Details

Summary

This fixes a unittest failure introduced by D44717

D44717 introduced lazy sorting of the internal data structures of the
symbol table. The AddrToMD5Map getter was potentially exposing
inconsistent (unsorted) state. We could sort in the accessor, however,
a client may store the pointer and thus bypass the internal state
management of the symbol table. The alternative in this CL blocks
direct access to the state, thus ensuring consistent
externally-observable state.

Diff Detail

Repository
rL LLVM

Event Timeline

mtrofin created this revision.Mar 21 2018, 2:56 PM
mtrofin updated this revision to Diff 139379.Mar 21 2018, 3:02 PM

Removed windows fix, since it was already addressed in r328157

mtrofin retitled this revision from [InstrProf] Fix test failures introduced by D44717 to [InstrProf] Encapsulates access to AddrToMD5Map..Mar 21 2018, 3:06 PM
mtrofin edited the summary of this revision. (Show Details)
xur accepted this revision.Mar 21 2018, 3:25 PM

lgtm

This revision is now accepted and ready to land.Mar 21 2018, 3:25 PM
This revision was automatically updated to reflect the committed changes.