forked from eden-emu/eden
[dynarmic] Align memory slab allocations.
This commit is contained in:
parent
2112c4a3aa
commit
1e31a48957
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ private:
|
||||||
/// Used when an entirely new slab is needed
|
/// Used when an entirely new slab is needed
|
||||||
/// due the current one running out of usable space.
|
/// due the current one running out of usable space.
|
||||||
void AllocateNewSlab() noexcept {
|
void AllocateNewSlab() noexcept {
|
||||||
current_slab = static_cast<char*>(std::malloc(object_size * slab_size));
|
current_slab = static_cast<char*>(std::aligned_alloc(object_size, object_size * slab_size));
|
||||||
current_ptr = current_slab;
|
current_ptr = current_slab;
|
||||||
remaining = slab_size;
|
remaining = slab_size;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue