summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorJez Kabanov <thesleepless@gmail.com>2016-10-05 19:16:31 +1100
committerJez Kabanov <thesleepless@gmail.com>2016-10-05 19:16:31 +1100
commit014a90abadcc32f21bf85418b6cc958139fb4706 (patch)
treec1fa5b3f13310c2d66e27cae82a89cab3f0ecc14
parent79ddf0611df88a301d174bc8027237c9383528d6 (diff)
downloadNim-014a90abadcc32f21bf85418b6cc958139fb4706.tar.gz
call initAllocator in foreign thread
-rw-r--r--lib/system/gc_common.nim1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/system/gc_common.nim b/lib/system/gc_common.nim
index 7a1b88c84..513ede173 100644
--- a/lib/system/gc_common.nim
+++ b/lib/system/gc_common.nim
@@ -120,6 +120,7 @@ when allowForeignThreadGc:
     ## switches are used
     if not localGcInitialized:
       localGcInitialized = true
+      initAllocator()
       var stackTop {.volatile.}: pointer
       setStackBottom(addr(stackTop))
       initGC()