diff options
author | Jez Kabanov <thesleepless@gmail.com> | 2016-10-05 19:16:31 +1100 |
---|---|---|
committer | Jez Kabanov <thesleepless@gmail.com> | 2016-10-05 19:16:31 +1100 |
commit | 014a90abadcc32f21bf85418b6cc958139fb4706 (patch) | |
tree | c1fa5b3f13310c2d66e27cae82a89cab3f0ecc14 | |
parent | 79ddf0611df88a301d174bc8027237c9383528d6 (diff) | |
download | Nim-014a90abadcc32f21bf85418b6cc958139fb4706.tar.gz |
call initAllocator in foreign thread
-rw-r--r-- | lib/system/gc_common.nim | 1 |
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() |