This is an archive of the discontinued LLVM Phabricator instance.

[sanitizer_common] Don't initialize interceptor_metadata_map unless SI_POSIX is set
ClosedPublic

Authored by evgeny777 on Jul 16 2019, 5:55 AM.

Details

Summary

It looks like interceptor_metdata_map is not used if SI_POSIX is zero. I have non-posix platform and this change allows saving ~3MB of valuable memory.

Diff Detail

Repository
rL LLVM

Event Timeline

evgeny777 created this revision.Jul 16 2019, 5:55 AM
eugenis accepted this revision.Jul 16 2019, 2:24 PM

LGTM

lib/sanitizer_common/sanitizer_common_interceptors.inc
326 ↗(On Diff #210075)

these two if/endif blocks could be merged

This revision is now accepted and ready to land.Jul 16 2019, 2:24 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptJul 28 2019, 1:59 AM
Herald added a subscriber: delcypher. · View Herald Transcript