From a19712a4d7e7e42e5475459fa08afd4b8577dd89 Mon Sep 17 00:00:00 2001 From: Brett Laptop Date: Wed, 4 Sep 2024 16:05:35 -0400 Subject: [PATCH] fetch allocator --- CMakeLists.txt | 2 +- include/blt/gp/fwdecl.h | 4 ++-- lib/blt | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2a27092..bbb9149 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.25) -project(blt-gp VERSION 0.1.47) +project(blt-gp VERSION 0.1.48) include(CTest) diff --git a/include/blt/gp/fwdecl.h b/include/blt/gp/fwdecl.h index c824622..20c71fa 100644 --- a/include/blt/gp/fwdecl.h +++ b/include/blt/gp/fwdecl.h @@ -116,7 +116,7 @@ namespace blt::gp } }; - template + template class variable_bump_allocator { public: @@ -256,7 +256,7 @@ namespace blt::gp return blk; } auto size = align_size_to(bytes + sizeof(typename block_t::block_metadata_t), default_block_size); - auto* ptr = static_cast(alloc.allocate(size, blt::huge_page_t::BLT_2MB_PAGE)); + auto* ptr = static_cast(alloc.allocate(size)); new(ptr) block_t{size}; return ptr; } diff --git a/lib/blt b/lib/blt index 82cc1af..7198a8b 160000 --- a/lib/blt +++ b/lib/blt @@ -1 +1 @@ -Subproject commit 82cc1aff9688e1917e261bd341178562f37e190a +Subproject commit 7198a8b0c32e35c9d80d8e44ff17c7199ddde6f8