This is an archive of the discontinued LLVM Phabricator instance.

[tsan] Separate the constants in libignore and bump the maximum for instrumented libraries
ClosedPublic

Authored by kubamracek on Dec 13 2017, 10:42 AM.

Details

Summary

We're having some use cases where we have more than 128 (the current maximum) instrumented dynamic libraries loaded into a single process. Let's bump the limit to 1024, and separate the constants.

Diff Detail

Repository
rL LLVM

Event Timeline

kubamracek created this revision.Dec 13 2017, 10:42 AM
Herald added a subscriber: Restricted Project. · View Herald TranscriptDec 13 2017, 10:42 AM
dvyukov accepted this revision.Dec 13 2017, 11:54 PM

LGTM with a nit

lib/sanitizer_common/sanitizer_libignore.cc
83 ↗(On Diff #126788)

Probably better to switch to ARRAY_SIZE(ignored_code_ranges_) at this point.

112 ↗(On Diff #126788)

Ditto.

This revision is now accepted and ready to land.Dec 13 2017, 11:54 PM
This revision was automatically updated to reflect the committed changes.