[compiler-rt] [scudo] Add a method to use a hard-coded page size (PR #106646)

Christopher Ferris via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 4 16:50:09 PDT 2024


================
@@ -12,13 +12,19 @@
 
 namespace scudo {
 
-uptr PageSizeCached;
+#if !defined(SCUDO_PAGE_SIZE)
----------------
cferris1000 wrote:

Do you mean pulling in the cases from common.h here? If so, I wanted to leave the getPageSizeSlow in the header to make it inline.

I did add a comment for getPageSize to indicate where it's coming from. I also modified linux.cpp so that getPageSize will not exist if the page size is hard-coded.

https://github.com/llvm/llvm-project/pull/106646


More information about the llvm-commits mailing list