Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Dealloc page
  • Loading branch information
SirOlaf committed Jul 22, 2024
commit c66bc487c53119a567812ec8594f4917ec545384
1 change: 1 addition & 0 deletions lib/system/alloc.nim
Original file line number Diff line number Diff line change
Expand Up @@ -1101,6 +1101,7 @@ proc rawDealloc(a: var MemRegion, p: pointer) =
if c.owner.isAbandoned:
if c.owner.chunksInUse == 0:
deallocOsPages(c.owner[])
osDeallocPages(p, sizeof(MemRegion))

sysAssert(allocInv(a), "rawDealloc: end")
#when logAlloc: cprintf("dealloc(pointer_%p)\n", p)
Expand Down