call initAllocator in foreign thread
This commit is contained in:
parent
79ddf0611d
commit
014a90abad
1 changed files with 1 additions and 0 deletions
|
|
@ -120,6 +120,7 @@ when allowForeignThreadGc:
|
|||
## switches are used
|
||||
if not localGcInitialized:
|
||||
localGcInitialized = true
|
||||
initAllocator()
|
||||
var stackTop {.volatile.}: pointer
|
||||
setStackBottom(addr(stackTop))
|
||||
initGC()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue