mark and sweep GC without bitvectors works

This commit is contained in:
Araq 2013-02-19 23:07:08 +01:00
commit 4fc575bc26
3 changed files with 8 additions and 5 deletions

View file

@ -319,7 +319,8 @@ iterator allObjects(m: TMemRegion): pointer {.inline.} =
let size = c.size
var a = cast[TAddress](addr(c.data))
while a <% c.acc:
let limit = a + c.acc
while a <% limit:
yield cast[pointer](a)
a = a +% size
else: