llvm-project/llvm/tools/llvm-jitlink
Lang Hames ab5e6e7434 [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().
2021-09-28 10:43:46 -07:00
..
llvm-jitlink-executor [ORC][llvm-jitlink] Add debugging output to SimpleRemoteEPC (and Server). 2021-09-26 10:00:29 -07:00
CMakeLists.txt [llvm-jitlink] Link libnetwork on Haiku in llvm-jitlink 2021-05-14 20:49:03 -07:00
llvm-jitlink-elf.cpp [JITLink] Switch from StringRef to ArrayRef<char>, add some generic x86-64 utils 2021-03-30 21:07:24 -07:00
llvm-jitlink-macho.cpp [JITLink] Switch from StringRef to ArrayRef<char>, add some generic x86-64 utils 2021-03-30 21:07:24 -07:00
llvm-jitlink.cpp [llvm-jitlink] Add a -slab-page-size option to override process page size. 2021-09-28 10:43:46 -07:00
llvm-jitlink.h Re-apply bb27e45643 and 5629afea91 with fixes. 2021-09-12 14:23:22 +10:00