modify chunk size

This commit is contained in:
mutouyun 2019-07-03 14:26:45 +00:00
parent 3d46bcd47a
commit b3ef1ed760
4 changed files with 2 additions and 2 deletions

Binary file not shown.

2
src/memory/resource.h Normal file → Executable file
View File

@ -17,7 +17,7 @@
namespace ipc {
namespace mem {
using chunk_variable_alloc = variable_alloc<sizeof(void*) * 1024 * 1024 /* 8MB(x64) */>;
using chunk_variable_alloc = variable_alloc<sizeof(void*) * 256 * 1024 /* 2MB(x64) */>;
template <std::size_t Size>
using static_async_fixed = static_wrapper<async_wrapper<fixed_alloc<Size, chunk_variable_alloc>>>;

0
test/test_ipc.cpp Normal file → Executable file
View File

2
test/test_mem.cpp Normal file → Executable file
View File

@ -25,7 +25,7 @@ private slots:
void test_alloc_free();
void test_static();
void test_pool();
} unit__;
} /*unit__*/;
#include "test_mem.moc"