This is an archive of the discontinued LLVM Phabricator instance.

tsan: define all fields for all mappings
ClosedPublic

Authored by dvyukov on Aug 9 2021, 12:51 AM.

Details

Summary

Define all fields to 0 for all mappings.
This allows to write portable code and tests.
For all existing cases 0 values work out of the box
because we check if an address belongs to the range
and nothing belongs to [0, 0] range.

Depends on D107738.

Diff Detail

Event Timeline

dvyukov requested review of this revision.Aug 9 2021, 12:51 AM
dvyukov created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptAug 9 2021, 12:51 AM
Herald added a subscriber: Restricted Project. · View Herald Transcript
melver accepted this revision.Aug 9 2021, 3:55 AM
This revision is now accepted and ready to land.Aug 9 2021, 3:55 AM
dvyukov updated this revision to Diff 365240.Aug 9 2021, 11:46 AM

changed SelectMapping to use template Arg and rebased

This revision was automatically updated to reflect the committed changes.