[compiler-rt] [scudo] Refactor allocator config to support optional flags (PR #81805)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 27 14:45:00 PST 2024
================
@@ -48,13 +48,16 @@ namespace scudo {
template <typename Config> class SizeClassAllocator64 {
public:
- typedef typename Config::Primary::CompactPtrT CompactPtrT;
- typedef typename Config::Primary::SizeClassMap SizeClassMap;
+ typedef typename Config::CompactPtrT CompactPtrT;
+ typedef typename Config::SizeClassMap SizeClassMap;
+#if 0
typedef typename ConditionVariableState<
typename Config::Primary>::ConditionVariableT ConditionVariableT;
- static const uptr CompactPtrScale = Config::Primary::CompactPtrScale;
- static const uptr RegionSizeLog = Config::Primary::RegionSizeLog;
- static const uptr GroupSizeLog = Config::Primary::GroupSizeLog;
+#endif
----------------
ChiaHungDuan wrote:
Left over. Will be removed.
https://github.com/llvm/llvm-project/pull/81805
More information about the llvm-commits
mailing list