summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2014-08-13 20:17:16 +0200
committerAndreas Rumpf <rumpf_a@web.de>2014-08-13 20:17:16 +0200
commit1d19c9525e3b6453b3402cee3ce59b5780782e75 (patch)
tree7b46a1582133f40ee2617bae397eaad8b22bb2ce /lib
parent32a5d4baf0e4930dbb9da47b060784a948bc2bee (diff)
parent15734009ca9077cfc8c4139b8258b2db2d7492dd (diff)
downloadNim-1d19c9525e3b6453b3402cee3ce59b5780782e75.tar.gz
Merge pull request #1400 from rbehrends/fix-stackscan
More robust implementation for finding the beginning of the stack.
Diffstat (limited to 'lib')
-rw-r--r--lib/system.nim6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/system.nim b/lib/system.nim
index 3dc7e308e..8ab3ee2e5 100644
--- a/lib/system.nim
+++ b/lib/system.nim
@@ -2182,6 +2182,12 @@ when not defined(JS): #and not defined(NimrodVM):
         locals = addr(locals)
         setStackBottom(locals)
 
+    proc initStackBottomWith(locals: pointer) {.inline, compilerproc.} =
+      # We need to keep initStackBottom around for now to avoid
+      # bootstrapping problems.
+      when defined(setStackBottom):
+        setStackBottom(locals)
+
     var
       strDesc: TNimType