[compiler-rt] [scudo] Add EnableMultiRegions mode (PR #98076)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 10 14:58:10 PDT 2024
================
@@ -93,9 +93,11 @@ template <class Derived, typename MemMapTy> class ReservedMemory {
constexpr ReservedMemory() = default;
// Reserve a chunk of memory at a suggested address.
- bool create(uptr Addr, uptr Size, const char *Name, uptr Flags = 0) {
+ bool create(uptr Addr, uptr Size, const char *Name, uptr Flags = 0,
+ uptr Alignment = getPageSizeCached()) {
----------------
ChiaHungDuan wrote:
This is a good idea. Done.
BTW, I haven't rebased so I haven't changed to use `getPageSizeLogCached` accordingly. Will do it later.
https://github.com/llvm/llvm-project/pull/98076
More information about the llvm-commits
mailing list