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 | Perhaps DCHECK_GE |
compiler-rt/lib/sanitizer_common/sanitizer_common_region.cpp | ||
---|---|---|
52 | lgtm, seems too obvious to be true |
compiler-rt/lib/sanitizer_common/sanitizer_common_region.cpp | ||
---|---|---|
52 |
I tried to say "will do" :) |
compiler-rt/lib/sanitizer_common/sanitizer_common_region.cpp | ||
---|---|---|
10 | This comment is different from sanitizer_common_region.h. Does this file need a comment when the header has one? | |
21 | 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 | ||
10 | For now, this comment can state that this file computes the intersection between two arrays of ranges. | |
21 | 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 | ||
41 | 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:)
For now, this comment can state that this file computes the intersection between two arrays of ranges.