From 3d46bcd47af93b8afd61511ffc5a85f3f6b37098 Mon Sep 17 00:00:00 2001 From: mutouyun Date: Wed, 3 Jul 2019 21:56:28 +0800 Subject: [PATCH] just use default policy for chunk_variable_alloc --- src/memory/resource.h | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/src/memory/resource.h b/src/memory/resource.h index 7e901db..604f67e 100644 --- a/src/memory/resource.h +++ b/src/memory/resource.h @@ -17,27 +17,7 @@ namespace ipc { namespace mem { -template -using static_sync_fixed = static_wrapper>>; - -namespace detail { - -struct chunk_mapping_policy { - - enum : std::size_t { - base_size = sizeof(void*) * 1024 * 1024, /* 8MB(x64) */ - classes_size = 1 - }; - - constexpr static std::size_t classify(std::size_t size) { - return (size <= base_size) ? 0 : static_cast(classes_size); - } -}; - -} // namespace detail - -using static_chunk_alloc = variable_wrapper; -using chunk_variable_alloc = variable_alloc; +using chunk_variable_alloc = variable_alloc; template using static_async_fixed = static_wrapper>>;