This is an archive of the discontinued LLVM Phabricator instance.

Use write instead of read permissions to check for global sections on mac
ClosedPublic

Authored by fjricci on May 18 2017, 9:52 AM.

Details

Summary

The LINKEDIT section is very large and is read-only. Scanning this
section caused LSan on darwin to be very slow. When only writable sections
are scanned for global pointers, performance improved by a factor of about 25x.

Event Timeline

fjricci created this revision.May 18 2017, 9:52 AM
alekseyshl accepted this revision.May 18 2017, 10:45 AM
This revision is now accepted and ready to land.May 18 2017, 10:45 AM
This revision was automatically updated to reflect the committed changes.