[dynarmic] Align memory slab allocations.

This commit is contained in:
weakboson 2025-07-26 23:17:15 +08:00
parent 2112c4a3aa
commit 1e31a48957

View file

@ -47,7 +47,7 @@ private:
/// Used when an entirely new slab is needed
/// due the current one running out of usable space.
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;
remaining = slab_size;
}