diff options
author | Alex Auvolat <alex@adnab.me> | 2017-05-08 16:43:31 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2017-05-08 16:43:31 +0200 |
commit | 287a579f65e6e5e3c4610cbf134123691ee3e64c (patch) | |
tree | 1774e1ec804fa712d3d87547ef5c7e45998b2f12 /src/lib/libc/malloc.c | |
parent | e72e5e87497744410fb62843ef852d26bf5277d2 (diff) | |
download | kogata-287a579f65e6e5e3c4610cbf134123691ee3e64c.tar.gz kogata-287a579f65e6e5e3c4610cbf134123691ee3e64c.zip |
Implement tk.box
Diffstat (limited to 'src/lib/libc/malloc.c')
-rw-r--r-- | src/lib/libc/malloc.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/libc/malloc.c b/src/lib/libc/malloc.c index fd37f76..6498273 100644 --- a/src/lib/libc/malloc.c +++ b/src/lib/libc/malloc.c @@ -27,13 +27,13 @@ static void heap_free_pages(void* addr) { static mem_allocator_t *mem_allocator; static slab_type_t slab_sizes[] = { { "8B malloc objects", 8, 2 }, - { "16B malloc objects", 16, 2 }, - { "32B malloc objects", 32, 2 }, + { "16B malloc objects", 16, 4 }, + { "32B malloc objects", 32, 4 }, { "64B malloc objects", 64, 4 }, - { "128B malloc objects", 128, 4 }, - { "256B malloc objects", 256, 4 }, + { "128B malloc objects", 128, 8 }, + { "256B malloc objects", 256, 8 }, { "512B malloc objects", 512, 8 }, - { "1KB malloc objects", 1024, 8 }, + { "1KB malloc objects", 1024, 16 }, { "2KB malloc objects", 2048, 16 }, { "4KB malloc objects", 4096, 16 }, { 0, 0, 0 } |