GC with primitive MS

This commit is contained in:
Andreas Rumpf
2016-05-16 00:28:00 +02:00
parent 74aab132bd
commit d8bce8b83d
2 changed files with 6 additions and 132 deletions

View File

@@ -16,7 +16,7 @@ const
# above X strings a hash-switch for strings is generated
proc registerGcRoot(p: BProc, v: PSym) =
if gSelectedGC in {gcMarkAndSweep, gcGenerational, gcV2} and
if gSelectedGC in {gcMarkAndSweep, gcGenerational, gcV2, gcRefc} and
containsGarbageCollectedRef(v.loc.t):
# we register a specialized marked proc here; this has the advantage
# that it works out of the box for thread local storage then :-)