#pragma once #include "../ds/bits.h" #include "pal_timer_default.h" namespace snmalloc { // Can be extended // Will require a reserve method in subclasses. template class PALPlainMixin : public State, public PalTimerDefaultImpl { public: // Notify platform that we will not be using these pages static void notify_not_using(void*, size_t) noexcept {} // Notify platform that we will not be using these pages template static void notify_using(void* p, size_t size) noexcept { if constexpr (zero_mem == YesZero) { State::zero(p, size); } else { UNUSED(p); UNUSED(size); } } }; } // namespace snmalloc