diff options
author | Araq <rumpf_a@web.de> | 2017-01-31 21:21:08 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2017-01-31 21:21:08 +0100 |
commit | b3e55e532b3b06ba102e8c4f54c96157fe3bb469 (patch) | |
tree | d6225d8d1861e1fc7c45fa49fd8471d2f6661d12 | |
parent | d12a5a6525c95e825a3094e8069cc54938eb8045 (diff) | |
download | Nim-b3e55e532b3b06ba102e8c4f54c96157fe3bb469.tar.gz |
allocator: fixes regression: get alignment right for small objects
-rw-r--r-- | lib/system/alloc.nim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/system/alloc.nim b/lib/system/alloc.nim index 6f11941a0..6e7801be5 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! |