beginnings of --gc:stack

This commit is contained in:
Andreas Rumpf 2016-03-12 13:29:27 +01:00
commit e2c8d9ade0
5 changed files with 181 additions and 150 deletions

View file

@ -518,6 +518,9 @@ else:
sysAssert(sizeof(Cell) == sizeof(FreeCell), "sizeof FreeCell")
when compileOption("gc", "v2"):
include "system/gc2"
elif defined(gcStack):
# XXX due to bootstrapping reasons, we cannot use compileOption("gc", "stack") here
include "system/gc_stack"
elif defined(gcMarkAndSweep):
# XXX use 'compileOption' here
include "system/gc_ms"