--gc:v2 requires global root tracking
This commit is contained in:
parent
a1739455d3
commit
6361f6b76d
1 changed files with 1 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ const
|
||||||
# above X strings a hash-switch for strings is generated
|
# above X strings a hash-switch for strings is generated
|
||||||
|
|
||||||
proc registerGcRoot(p: BProc, v: PSym) =
|
proc registerGcRoot(p: BProc, v: PSym) =
|
||||||
if gSelectedGC in {gcMarkAndSweep, gcGenerational} and
|
if gSelectedGC in {gcMarkAndSweep, gcGenerational, gcV2} and
|
||||||
containsGarbageCollectedRef(v.loc.t):
|
containsGarbageCollectedRef(v.loc.t):
|
||||||
# we register a specialized marked proc here; this has the advantage
|
# we register a specialized marked proc here; this has the advantage
|
||||||
# that it works out of the box for thread local storage then :-)
|
# that it works out of the box for thread local storage then :-)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue