aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInstance.cpp
diff options
context:
space:
mode:
authorzhanglimin <zhanglimin@loongson.cn>2023-04-24 14:27:37 +0800
committerwanglei <wanglei@loongson.cn>2023-04-24 14:27:41 +0800
commitfd9f7b90109b3fb9a3ac8df5eb4dd966a359c2f4 (patch)
tree6f255cea30efafe54b04524087fe971d3312d507 /clang/lib/Frontend/CompilerInstance.cpp
parentdc2b8ae962ffd6b8713877bbb6303e172ad982d6 (diff)
downloadllvm-fd9f7b90109b3fb9a3ac8df5eb4dd966a359c2f4.zip
llvm-fd9f7b90109b3fb9a3ac8df5eb4dd966a359c2f4.tar.gz
llvm-fd9f7b90109b3fb9a3ac8df5eb4dd966a359c2f4.tar.bz2
[lsan][test] Obtaining page size using sysconf(_SC_PAGESIZE)
The effectiveness of the mprotect function depends on whether the first argument is aligned to a page boundary. If mprotect doesn't work, the kernel will not generate a SIGSEGV signal for the process when the calling process tries to access memory in a manner that violates the protection. If so, this test fails. The problem for this test is that it uses a fixed 4 kB page size and is aligned. This fails when the page size is not 4 kB. For example, this fails on LoongArch which uses a 16 kB pagesize. Reviewed By: SixWeining, xen0n, MaskRay, vitalybuka Differential Revision: https://reviews.llvm.org/D148407
Diffstat (limited to 'clang/lib/Frontend/CompilerInstance.cpp')
0 files changed, 0 insertions, 0 deletions