Properly initialize the Boehm GC on all platforms.
This commit is contained in:
parent
55e479657a
commit
4baaea5ad5
1 changed files with 1 additions and 1 deletions
|
|
@ -157,7 +157,7 @@ when defined(boehmgc):
|
||||||
proc setStackBottom(theStackBottom: pointer) = discard
|
proc setStackBottom(theStackBottom: pointer) = discard
|
||||||
|
|
||||||
proc initGC() =
|
proc initGC() =
|
||||||
when defined(macosx): boehmGCinit()
|
boehmGCinit()
|
||||||
|
|
||||||
proc newObj(typ: PNimType, size: int): pointer {.compilerproc.} =
|
proc newObj(typ: PNimType, size: int): pointer {.compilerproc.} =
|
||||||
if ntfNoRefs in typ.flags: result = allocAtomic(size)
|
if ntfNoRefs in typ.flags: result = allocAtomic(size)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue