allocator: fixes regression: get alignment right for small objects
This commit is contained in:
parent
d12a5a6525
commit
b3e55e532b
1 changed files with 2 additions and 0 deletions
|
|
@ -62,6 +62,8 @@ type
|
||||||
freeList: ptr FreeCell
|
freeList: ptr FreeCell
|
||||||
free: int # how many bytes remain
|
free: int # how many bytes remain
|
||||||
acc: int # accumulator for small object allocation
|
acc: int # accumulator for small object allocation
|
||||||
|
when defined(cpu32):
|
||||||
|
align: int
|
||||||
data: AlignType # start of usable memory
|
data: AlignType # start of usable memory
|
||||||
|
|
||||||
BigChunk = object of BaseChunk # not necessarily > PageSize!
|
BigChunk = object of BaseChunk # not necessarily > PageSize!
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue