aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2021-09-28 10:25:11 -0700
committerLang Hames <lhames@gmail.com>2021-09-28 10:43:46 -0700
commitab5e6e7434ebc67e89332d4401926978c8fb143b (patch)
tree27bfa09a4b3a449b082fa69671f1499e84b09a6d /clang/lib/CodeGen/CodeGenFunction.cpp
parent9e7fdcbafed90e8946ecd4d8b118786b12905595 (diff)
downloadllvm-ab5e6e7434ebc67e89332d4401926978c8fb143b.zip
llvm-ab5e6e7434ebc67e89332d4401926978c8fb143b.tar.gz
llvm-ab5e6e7434ebc67e89332d4401926978c8fb143b.tar.bz2
[llvm-jitlink] Add a -slab-page-size option to override process page size.
The slab allocator is frequently used in -noexec tests where we want a consistent memory layout. In this context we also want to set the effective page size, rather than using the page size of the host process, since not all systems use the same page size. The -slab-page-size option allows us to set the page size for such tests. The -slab-page-size option will also be honored in exec mode when using the slab allocator, but will trigger an error if the requested size is not a multiple of the actual process page size. This option was motivated by test failures on a ppc64 bot that was returning zero from sys::Process::getPageSize(), so it also contains a check for errors and zero results from that function if the -slab-page-size option is absent. Existing slab allocator tests will be updated to use this option in a follow-up commit so that we can point the failing bot at this commit and observe errors associated with sys::Process::getPageSize().
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions