mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-07 04:14:19 +00:00
allocator: fixes regression: get alignment right for small objects
This commit is contained in:
@@ -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!
|
||||
|
||||
Reference in New Issue
Block a user