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
Remove comment
  • Loading branch information
SirOlaf authored Oct 17, 2024
commit 0501c973e3342d7d3f78f56b3cdb071780f2e619
1 change: 0 additions & 1 deletion lib/system/alloc.nim
Original file line number Diff line number Diff line change
Expand Up @@ -1202,7 +1202,6 @@ proc realloc0(allocator: var MemRegion, p: pointer, oldsize, newsize: Natural):
zeroMem(cast[pointer](cast[uint](result) + uint(oldsize)), newsize - oldsize)

proc abandonAllocator(a: var MemRegion) =
# There may be a race condition here...
if a.chunksInUse == 0:
# Deallocating is only safe if all chunks are unused
deallocOsPages(a)
Expand Down