preparations for a generational GC
This commit is contained in:
parent
1c0c80ef2d
commit
5d119f61d1
6 changed files with 13 additions and 6 deletions
|
|
@ -16,7 +16,8 @@ const
|
|||
# above X strings a hash-switch for strings is generated
|
||||
|
||||
proc registerGcRoot(p: BProc, v: PSym) =
|
||||
if gSelectedGc == gcMarkAndSweep and containsGarbageCollectedRef(v.loc.t):
|
||||
if gSelectedGc in {gcMarkAndSweep, gcGenerational} 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 :-)
|
||||
let prc = genTraverseProcForGlobal(p.module, v)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue