summary refs log tree commit diff stats
path: root/lib/system.nim
diff options
context:
space:
mode:
authorAnatoly Galiulin <galiulin.anatoly@gmail.com>2017-02-08 16:26:15 +0700
committerAndreas Rumpf <rumpf_a@web.de>2017-02-08 10:26:15 +0100
commit61b4bb5af5588b95a9b050e9925960ead87b0ea1 (patch)
tree9e648c9711fbcf0b6c1709bb499433a968d76e0f /lib/system.nim
parentca39e113d5d237f239f2334eaa5cab3c8efac979 (diff)
downloadNim-61b4bb5af5588b95a9b050e9925960ead87b0ea1.tar.gz
Mark setupForeignThreadGc and initGC as gcsafe (#5353)
Diffstat (limited to 'lib/system.nim')
-rw-r--r--lib/system.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/system.nim b/lib/system.nim
index 09d48fd12..5d17f7651 100644
--- a/lib/system.nim
+++ b/lib/system.nim
@@ -2630,7 +2630,7 @@ when not defined(JS): #and not defined(nimscript):
 
   when hasAlloc:
     when not defined(gcStack):
-      proc initGC()
+      proc initGC() {.gcsafe.}
     when not defined(boehmgc) and not defined(useMalloc) and
         not defined(gogc) and not defined(gcStack):
       proc initAllocator() {.inline.}