This commit is contained in:
Araq 2017-10-16 12:29:40 +02:00
commit 4a7266e1c1
2 changed files with 17 additions and 15 deletions

View file

@ -301,7 +301,8 @@ proc pageAddr(p: pointer): PChunk {.inline.} =
result = cast[PChunk](cast[ByteAddress](p) and not PageMask) result = cast[PChunk](cast[ByteAddress](p) and not PageMask)
#sysAssert(Contains(allocator.chunkStarts, pageIndex(result))) #sysAssert(Contains(allocator.chunkStarts, pageIndex(result)))
proc writeFreeList(a: MemRegion) = when false:
proc writeFreeList(a: MemRegion) =
var it = a.freeChunksList var it = a.freeChunksList
c_fprintf(stdout, "freeChunksList: %p\n", it) c_fprintf(stdout, "freeChunksList: %p\n", it)
while it != nil: while it != nil:

View file

@ -155,7 +155,8 @@ template setColor(c, col) =
else: else:
c.refcount = c.refcount and not colorMask or col c.refcount = c.refcount and not colorMask or col
proc writeCell(msg: cstring, c: PCell) = when defined(logGC):
proc writeCell(msg: cstring, c: PCell) =
var kind = -1 var kind = -1
var typName: cstring = "nil" var typName: cstring = "nil"
if c.typ != nil: if c.typ != nil: