From 014a90abadcc32f21bf85418b6cc958139fb4706 Mon Sep 17 00:00:00 2001 From: Jez Kabanov Date: Wed, 5 Oct 2016 19:16:31 +1100 Subject: [PATCH] call initAllocator in foreign thread --- lib/system/gc_common.nim | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/system/gc_common.nim b/lib/system/gc_common.nim index 7a1b88c84f..513ede1734 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()