From d47c44783da551f020b0b6db3a46c670aa3be81f Mon Sep 17 00:00:00 2001 From: Matthew Parkinson Date: Thu, 5 May 2022 11:09:14 +0100 Subject: [PATCH] Remove redundant params. --- src/snmalloc/ds/allocconfig.h | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/src/snmalloc/ds/allocconfig.h b/src/snmalloc/ds/allocconfig.h index 2186b78..b3e789e 100644 --- a/src/snmalloc/ds/allocconfig.h +++ b/src/snmalloc/ds/allocconfig.h @@ -13,33 +13,6 @@ namespace snmalloc #endif ; - enum DecommitStrategy - { - /** - * Never decommit memory. - */ - DecommitNone, - /** - * Decommit superslabs when they are entirely empty. - */ - DecommitSuper, - /** - * Decommit superslabs only when we are informed of memory pressure by the - * OS, do not decommit anything in normal operation. - */ - DecommitSuperLazy - }; - - static constexpr DecommitStrategy decommit_strategy = -#ifdef USE_DECOMMIT_STRATEGY - USE_DECOMMIT_STRATEGY -#elif defined(_WIN32) && !defined(OPEN_ENCLAVE) - DecommitSuperLazy -#else - DecommitSuper -#endif - ; - // The remaining values are derived, not configurable. static constexpr size_t POINTER_BITS = bits::next_pow2_bits_const(sizeof(uintptr_t));