Properly initialize the Boehm GC on all platforms.

This commit is contained in:
Reimer Behrends
2015-09-06 01:48:31 +02:00
parent 55e479657a
commit 4baaea5ad5

View File

@@ -157,7 +157,7 @@ when defined(boehmgc):
proc setStackBottom(theStackBottom: pointer) = discard
proc initGC() =
when defined(macosx): boehmGCinit()
boehmGCinit()
proc newObj(typ: PNimType, size: int): pointer {.compilerproc.} =
if ntfNoRefs in typ.flags: result = allocAtomic(size)