keep initStackBottom calls please

This commit is contained in:
Araq 2012-08-02 23:21:58 +02:00
commit 3c50794a08
2 changed files with 2 additions and 0 deletions

View file

@ -1935,6 +1935,7 @@ when not defined(EcmaScript) and not defined(NimrodVM):
include "system/syslocks" include "system/syslocks"
include "system/threads" include "system/threads"
elif not defined(nogc): elif not defined(nogc):
when not defined(useNimRtl) and not defined(createNimRtl): initStackBottom()
initGC() initGC()
proc setControlCHook*(hook: proc () {.noconv.}) proc setControlCHook*(hook: proc () {.noconv.})

View file

@ -203,6 +203,7 @@ when not defined(useNimRtl):
when not useStackMaskHack: when not useStackMaskHack:
var mainThread: TGcThread var mainThread: TGcThread
ThreadVarSetValue(globalsSlot, addr(mainThread)) ThreadVarSetValue(globalsSlot, addr(mainThread))
when not defined(createNimRtl): initStackBottom()
initGC() initGC()
when emulatedThreadVars: when emulatedThreadVars: