mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-19 09:28:33 +00:00
Merge pull request #4855 from ftsf/fix-foreignthreads
call initAllocator in foreign thread
This commit is contained in:
@@ -120,6 +120,7 @@ when allowForeignThreadGc:
|
||||
## switches are used
|
||||
if not localGcInitialized:
|
||||
localGcInitialized = true
|
||||
initAllocator()
|
||||
var stackTop {.volatile.}: pointer
|
||||
setStackBottom(addr(stackTop))
|
||||
initGC()
|
||||
|
||||
Reference in New Issue
Block a user