Expose GC_setStackBottom (#7885)

This commit is contained in:
Yuriy Glukhov 2018-06-04 12:12:18 +03:00 • committed by Andreas Rumpf
commit 395b7506cf
5 changed files with 17 additions and 13 deletions

View file

@ -440,7 +440,7 @@ proc threadProcWrapStackFrame[TArg](thrd: ptr Thread[TArg]) =
threadProcWrapDispatch[TArg]
when not hasSharedHeap:
# init the GC for refc/markandsweep
setStackBottom(addr(p))
nimGC_setStackBottom(addr(p))
initGC()
when declared(threadType):
threadType = ThreadType.NimThread