Compare commits
No commits in common. "be87d291287f283b5a63878385c4098618d87bc3" and "d40f741431af52c2ce23c4e7c42b24fe63c8df2a" have entirely different histories.
be87d29128
...
d40f741431
|
@ -1,5 +1,5 @@
|
||||||
cmake_minimum_required(VERSION 3.25)
|
cmake_minimum_required(VERSION 3.25)
|
||||||
project(blt-gp VERSION 0.1.49)
|
project(blt-gp VERSION 0.1.47)
|
||||||
|
|
||||||
include(CTest)
|
include(CTest)
|
||||||
|
|
||||||
|
|
|
@ -116,7 +116,7 @@ namespace blt::gp
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
template<typename Alloc = blt::aligned_huge_allocator>
|
template<typename Alloc = blt::mmap_huge_allocator>
|
||||||
class variable_bump_allocator
|
class variable_bump_allocator
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
@ -241,7 +241,7 @@ namespace blt::gp
|
||||||
void push_block(blt::size_t bytes)
|
void push_block(blt::size_t bytes)
|
||||||
{
|
{
|
||||||
auto blk = allocate_block(bytes);
|
auto blk = allocate_block(bytes);
|
||||||
// BLT_TRACE("Allocated block %p", blk);
|
BLT_TRACE("Allocated block %p", blk);
|
||||||
blk->metadata.next = head;
|
blk->metadata.next = head;
|
||||||
head = blk;
|
head = blk;
|
||||||
}
|
}
|
||||||
|
@ -256,7 +256,7 @@ namespace blt::gp
|
||||||
return blk;
|
return blk;
|
||||||
}
|
}
|
||||||
auto size = align_size_to(bytes + sizeof(typename block_t::block_metadata_t), default_block_size);
|
auto size = align_size_to(bytes + sizeof(typename block_t::block_metadata_t), default_block_size);
|
||||||
auto* ptr = static_cast<block_t*>(alloc.allocate(size));
|
auto* ptr = static_cast<block_t*>(alloc.allocate(size, blt::huge_page_t::BLT_2MB_PAGE));
|
||||||
new(ptr) block_t{size};
|
new(ptr) block_t{size};
|
||||||
return ptr;
|
return ptr;
|
||||||
}
|
}
|
||||||
|
|
2
lib/blt
2
lib/blt
|
@ -1 +1 @@
|
||||||
Subproject commit 7198a8b0c32e35c9d80d8e44ff17c7199ddde6f8
|
Subproject commit 82cc1aff9688e1917e261bd341178562f37e190a
|
Loading…
Reference in New Issue