This breaks the valloc test on PowerPC, which has 64kiB pages. Since
getting page size portably is nontrivial, and there's already a function
for that in __sanitizer, just use it. Unfortunately, sanitizer_common.h
conflicts with the interface headers inclucded by msan_test.cc (and a few
of its own macros), so we have to declare it manually.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Unfortunately, this fails if this code is built as a shared library.
__sanitizer::* symbols are not exported by MSan.
It looks like sysconf(_SC_PAGESIZE) should work on all supported platforms. I'll make the change.