summary refs log tree commit diff stats
path: root/lib/system/gc_regions.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2019-01-25 09:49:01 +0100
committerAraq <rumpf_a@web.de>2019-01-25 09:49:16 +0100
commit70c7348d3e502fa718fb56848fca8df608a085f7 (patch)
treee367a4c42abcee6229caf685d864fd152a7c8b6b /lib/system/gc_regions.nim
parent83caa58c7aab3e32e4c6a30559515b15683b8b80 (diff)
downloadNim-70c7348d3e502fa718fb56848fca8df608a085f7.tar.gz
gc:regions: undo the regression introducing changes
Diffstat (limited to 'lib/system/gc_regions.nim')
-rw-r--r--lib/system/gc_regions.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/system/gc_regions.nim b/lib/system/gc_regions.nim
index 3b908fb08..59f68918f 100644
--- a/lib/system/gc_regions.nim
+++ b/lib/system/gc_regions.nim
@@ -257,14 +257,14 @@ proc deallocAll*() = tlRegion.deallocAll()
 
 proc deallocOsPages(r: var MemRegion) = r.deallocAll()
 
-template withScratchRegion*(body: untyped) =
+when false:
   let obs = obstackPtr()
   try:
     body
   finally:
     setObstackPtr(obs)
 
-when false:
+template withScratchRegion*(body: untyped) =
   var scratch: MemRegion
   let oldRegion = tlRegion
   tlRegion = scratch