This is an archive of the discontinued LLVM Phabricator instance.

[sanitizer] Remove max_len parameter from InternalScopedString
ClosedPublic

Authored by vitalybuka on Mar 16 2021, 4:35 PM.

Details

Summary

InternalScopedString uses InternalMmapVector internally
so it can be resized dynamically as needed.

Diff Detail

Event Timeline

vitalybuka created this revision.Mar 16 2021, 4:35 PM
vitalybuka requested review of this revision.Mar 16 2021, 4:35 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 16 2021, 4:35 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript
vitalybuka edited the summary of this revision. (Show Details)Mar 16 2021, 7:38 PM
eugenis accepted this revision.Mar 17 2021, 2:17 PM

Nice.
LGTM.

compiler-rt/lib/sanitizer_common/sanitizer_common.cpp
90

kMaxSummaryLength is now unused, and maybe some of the other named constants, too.

This revision is now accepted and ready to land.Mar 17 2021, 2:17 PM

removed unused constant

vitalybuka marked an inline comment as done.Mar 17 2021, 4:00 PM
This revision was landed with ongoing or failed builds.Mar 17 2021, 4:57 PM
This revision was automatically updated to reflect the committed changes.