fixes withRegion for --gc:stack

This commit is contained in:
Andreas Rumpf
2017-06-19 17:43:12 +02:00
parent d947753523
commit 8db37455dd
2 changed files with 1 additions and 2 deletions

View File

@@ -9,7 +9,6 @@
# Low level allocator for Nim. Has been designed to support the GC.
# TODO:
# - eliminate "used" field
# - make searching for block O(1)
{.push profiler:off.}

View File

@@ -79,7 +79,7 @@ template withRegion*(r: MemRegion; body: untyped) =
try:
body
finally:
r = tlRegion
#r = tlRegion
tlRegion = oldRegion
template inc(p: pointer, s: int) =