From b3e55e532b3b06ba102e8c4f54c96157fe3bb469 Mon Sep 17 00:00:00 2001 From: Araq Date: Tue, 31 Jan 2017 21:21:08 +0100 Subject: [PATCH] allocator: fixes regression: get alignment right for small objects --- lib/system/alloc.nim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/system/alloc.nim b/lib/system/alloc.nim index 6f11941a04..6e7801be5f 100644 --- a/lib/system/alloc.nim +++ b/lib/system/alloc.nim @@ -62,6 +62,8 @@ type freeList: ptr FreeCell free: int # how many bytes remain acc: int # accumulator for small object allocation + when defined(cpu32): + align: int data: AlignType # start of usable memory BigChunk = object of BaseChunk # not necessarily > PageSize!