Don't hard code the page in leak_check_segv.cpp, this breaks on
e.g. LoongArch which defaults to a 16KiB page size.
Details
Details
- Reviewers
vitalybuka SixWeining xen0n xry111 MaskRay XiaodongLoong - Group Reviewers
Restricted Project
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
This change is actually platform-agnostic. While it looks good to me (minus one nit) I'd like to leave the approval to someone else more familiar with this code.
compiler-rt/test/asan/TestCases/Linux/leak_check_segv.cpp | ||
---|---|---|
14 | Given you're touching this code and the use sites below all subtract 1 from the page size for use as bitmask, why not kPageBitsMask = GetPageSize() - 1? We're not going to see non-power-of-2 page sizes anytime soon. |
compiler-rt/test/asan/TestCases/Linux/leak_check_segv.cpp | ||
---|---|---|
14 | Ok, i will modify it. |
Given you're touching this code and the use sites below all subtract 1 from the page size for use as bitmask, why not kPageBitsMask = GetPageSize() - 1? We're not going to see non-power-of-2 page sizes anytime soon.