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
|
## switches are used
|
||||||
if not localGcInitialized:
|
if not localGcInitialized:
|
||||||
localGcInitialized = true
|
localGcInitialized = true
|
||||||
|
initAllocator()
|
||||||
var stackTop {.volatile.}: pointer
|
var stackTop {.volatile.}: pointer
|
||||||
setStackBottom(addr(stackTop))
|
setStackBottom(addr(stackTop))
|
||||||
initGC()
|
initGC()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue