fixes #3558
This commit is contained in:
parent
06854d1346
commit
4a7266e1c1
2 changed files with 17 additions and 15 deletions
|
|
@ -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:
|
||||||
|
|
|
||||||
|
|
@ -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:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue