Files
Nim/lib/system
ringabout 94008531c1 fixes #25457; make rawAlloc support alignment (#25476)
fixes https://github.com/nim-lang/Nim/issues/25457

Small chunks allocate memory in fixed-size cells. Each cell is
positioned at exact multiples of the cell size from the chunk's data
start, which makes it much harder to support alignment

```nim
sysAssert c.size == size, "rawAlloc 6"
if c.freeList == nil:
  sysAssert(c.acc.int + smallChunkOverhead() + size <= SmallChunkSize,
            "rawAlloc 7")
  result = cast[pointer](cast[int](addr(c.data)) +% c.acc.int)
  inc(c.acc, size)
```

See also https://github.com/nim-lang/Nim/pull/12926 

While using big trunk, each allocation gets its own chunk
2026-02-11 11:33:31 +01:00
..
2025-11-25 12:49:23 +01:00
2025-12-07 13:07:44 +01:00
2025-12-01 22:59:12 +01:00
2025-10-28 12:48:22 +01:00
2025-12-01 22:59:12 +01:00
2024-08-11 10:35:09 +08:00
2026-02-10 13:21:35 +01:00
2026-02-10 13:21:35 +01:00
2025-12-07 13:07:44 +01:00
2025-11-25 12:49:23 +01:00
2020-01-30 10:54:50 +01:00
2026-02-10 13:21:35 +01:00