[compiler-rt] [scudo] Add a method to use a hard-coded page size (PR #106646)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 4 14:27:46 PDT 2024
================
@@ -140,6 +140,11 @@ class Allocator {
typedef typename QuarantineT::CacheT QuarantineCacheT;
void init() {
+#if !defined(SCUDO_PAGE_SIZE)
----------------
ChiaHungDuan wrote:
I would suggest removing the `if !defined` because it's something we want to ensure no matter if it's a constant. OTOH, it will catch the mistake `SCUDO_PAGE_SIZE=0`
https://github.com/llvm/llvm-project/pull/106646
More information about the llvm-commits
mailing list