summary refs log tree commit diff stats
path: root/lib/system
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2012-06-25 00:23:41 +0200
committerAraq <rumpf_a@web.de>2012-06-25 00:23:41 +0200
commit5a838d3e06222f44b4c9876774ea2bd304afcc49 (patch)
treed7e1bde96c6c3b85e65e41fcb4d414793711ec06 /lib/system
parentee98c76d2e43eb2ff8e9bae38ac66f84bba6fb28 (diff)
downloadNim-5a838d3e06222f44b4c9876774ea2bd304afcc49.tar.gz
thread var emulation should work again
Diffstat (limited to 'lib/system')
-rwxr-xr-xlib/system/gc.nim2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/system/gc.nim b/lib/system/gc.nim
index d2f756cd7..1c6caeb77 100755
--- a/lib/system/gc.nim
+++ b/lib/system/gc.nim
@@ -632,6 +632,7 @@ else:
   const stackIncreases = false
 
 when not defined(useNimRtl):
+  {.push stack_trace: off.}
   proc setStackBottom(theStackBottom: pointer) =
     #c_fprintf(c_stdout, "stack bottom: %p;\n", theStackBottom)
     # the first init must be the one that defines the stack bottom:
@@ -644,6 +645,7 @@ when not defined(useNimRtl):
         gch.stackBottom = cast[pointer](min(a, b))
       else:
         gch.stackBottom = cast[pointer](max(a, b))
+  {.pop.}
 
 proc stackSize(): int {.noinline.} =
   var stackTop {.volatile.}: pointer