Merge pull request #1400 from rbehrends/fix-stackscan

More robust implementation for finding the beginning of the stack.
This commit is contained in:
Andreas Rumpf 2014-08-13 20:17:16 +02:00
commit 1d19c9525e
2 changed files with 23 additions and 8 deletions

View file

@ -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