This is an archive of the discontinued LLVM Phabricator instance.

[safestack] Remove dependency of SafeStack on sanitizer_common
ClosedPublic

Authored by vitalybuka on Jan 17 2019, 4:15 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

vitalybuka created this revision.Jan 17 2019, 4:15 PM
eugenis added inline comments.Jan 17 2019, 4:35 PM
compiler-rt/lib/safestack/safestack.cc
268 ↗(On Diff #182413)

Nice! Consider moving SCS_CHECK, RoundUpTo and MutextLock to safestack_util.h or some other header.

move some stuff into safestack_util.h
extract "static->unnamed namespace" into separate patch

vitalybuka marked an inline comment as done.Jan 17 2019, 5:00 PM
eugenis accepted this revision.Jan 17 2019, 5:50 PM

LGTM

This revision is now accepted and ready to land.Jan 17 2019, 5:50 PM
This revision was automatically updated to reflect the committed changes.
krytarowski added inline comments.Jan 17 2019, 9:07 PM
compiler-rt/trunk/lib/safestack/safestack.cc
154

Can we please add a dedicated (u64) type for TID? Assuming that PID==TID is linuxism.

vitalybuka marked 2 inline comments as done.Jan 18 2019, 2:16 PM
vitalybuka added inline comments.
compiler-rt/trunk/lib/safestack/safestack.cc
154