parent
0ae2d1ea88
commit
2aa97a228a
8 changed files with 2 additions and 79 deletions
|
|
@ -428,16 +428,6 @@ proc sweep(gch: var GcHeap) =
|
|||
if c.refcount == rcBlack: c.refcount = rcWhite
|
||||
else: freeCyclicCell(gch, c)
|
||||
|
||||
when false:
|
||||
# meant to be used with the now-deprected `.injectStmt`: {.injectStmt: newGcInvariant().}
|
||||
proc newGcInvariant*() =
|
||||
for x in allObjects(gch.region):
|
||||
if isCell(x):
|
||||
var c = cast[PCell](x)
|
||||
if c.typ == nil:
|
||||
writeStackTrace()
|
||||
quit 1
|
||||
|
||||
proc markGlobals(gch: var GcHeap) =
|
||||
if gch.gcThreadId == 0:
|
||||
when defined(nimTracing):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue