mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:08:12 +00:00
LibJS: Make sure all allocators are 8-byte aligned
Absolutely massive allocations > 1024 bytes would go into the size class which was 3172 bytes. 3172 happens to not be 8 byte aligned, and so made UBSAN very sad on x86_64. Change the largest allocator to be 3072 bytes, which is in fact a multiple of 8 :^)
This commit is contained in:
parent
e1b8a2e517
commit
f90a19ba4c
1 changed files with 1 additions and 1 deletions
|
@ -30,7 +30,7 @@ Heap::Heap(VM& vm)
|
|||
m_allocators.append(make<Allocator>(256));
|
||||
m_allocators.append(make<Allocator>(512));
|
||||
m_allocators.append(make<Allocator>(1024));
|
||||
m_allocators.append(make<Allocator>(3172));
|
||||
m_allocators.append(make<Allocator>(3072));
|
||||
}
|
||||
|
||||
Heap::~Heap()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue