Will be used to handle Root Regions in LSAN D151781.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
compiler-rt/lib/sanitizer_common/sanitizer_common_region.cpp | ||
---|---|---|
52 ↗ | (On Diff #526910) | Perhaps DCHECK_GE |
compiler-rt/lib/sanitizer_common/sanitizer_common_region.cpp | ||
---|---|---|
52 ↗ | (On Diff #526910) | lgtm, seems too obvious to be true |
compiler-rt/lib/sanitizer_common/sanitizer_common_region.cpp | ||
---|---|---|
52 ↗ | (On Diff #526910) |
I tried to say "will do" :) |
compiler-rt/lib/sanitizer_common/sanitizer_common_region.cpp | ||
---|---|---|
9 ↗ | (On Diff #527271) | This comment is different from sanitizer_common_region.h. Does this file need a comment when the header has one? |
20 ↗ | (On Diff #527271) | if (a.empty() || b.empty()) can be removed as the generic algorithm can handle the cases. |
compiler-rt/lib/sanitizer_common/sanitizer_common_region.h | ||
9 ↗ | (On Diff #527271) | For now, this comment can state that this file computes the intersection between two arrays of ranges. |
20 ↗ | (On Diff #527271) | Using Region to represent a range is fine in lsan, but the term may be confusing in sanitizer_common. Range or Interval may be better. |
compiler-rt/lib/sanitizer_common/tests/sanitizer_common_region_test.cpp | ||
40 ↗ | (On Diff #527271) | static? const Region& => const Region & std::ostream* => std::ostream * |
Will be used to handle Root Regions in LSAN.
Since you already have the lsan patch, you can attach its Dxxxx number in the commit message :)
Yes, "stack" is enough for people who visit Phabricator. Dxxxx will be helpful for people who just read commit messages:)