From 8db37455ddab477389f7ab10b386d2992d3fc7c4 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Mon, 19 Jun 2017 17:43:12 +0200 Subject: [PATCH] fixes withRegion for --gc:stack --- lib/system/alloc.nim | 1 - lib/system/gc_stack.nim | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/system/alloc.nim b/lib/system/alloc.nim index bcbc5d92f6..78db96e770 100644 --- a/lib/system/alloc.nim +++ b/lib/system/alloc.nim @@ -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.} diff --git a/lib/system/gc_stack.nim b/lib/system/gc_stack.nim index 3eda08df97..e7b9f65a77 100644 --- a/lib/system/gc_stack.nim +++ b/lib/system/gc_stack.nim @@ -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) =