gc:regions: undo the regression introducing changes

This commit is contained in:
Araq
2019-01-25 09:49:01 +01:00
parent 83caa58c7a
commit 70c7348d3e

View File

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