LibC: Make sure malloc() returns addresses that have an alignment of 8

This commit is contained in:
Gunnar Beutner 2021-04-28 08:37:36 +02:00 committed by Andreas Kling
parent aa792062cb
commit ae5ee2220c

View file

@ -14,7 +14,7 @@
#define MALLOC_SCRUB_BYTE 0xdc
#define FREE_SCRUB_BYTE 0xed
static constexpr unsigned short size_classes[] = { 8, 16, 32, 64, 128, 256, 500, 1016, 2032, 4088, 8184, 16376, 32752, 0 };
static constexpr unsigned short size_classes[] = { 8, 16, 32, 64, 128, 256, 504, 1016, 2032, 4088, 8184, 16376, 32752, 0 };
static constexpr size_t num_size_classes = (sizeof(size_classes) / sizeof(unsigned short)) - 1;
struct CommonHeader {