diff options
author | Andreas Rumpf <rumpf_a@web.de> | 2017-06-19 17:43:12 +0200 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2017-06-19 17:43:12 +0200 |
commit | 8db37455ddab477389f7ab10b386d2992d3fc7c4 (patch) | |
tree | 0f4dce00c698da91c7fdc56ed8325a4d35280d86 /lib/system | |
parent | d9477535230a0f32f8ee7a2d0cdd28d8fea2121b (diff) | |
download | Nim-8db37455ddab477389f7ab10b386d2992d3fc7c4.tar.gz |
fixes withRegion for --gc:stack
Diffstat (limited to 'lib/system')
-rw-r--r-- | lib/system/alloc.nim | 1 | ||||
-rw-r--r-- | lib/system/gc_stack.nim | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/lib/system/alloc.nim b/lib/system/alloc.nim index bcbc5d92f..78db96e77 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 3eda08df9..e7b9f65a7 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) = |