Skip to content

Commit

Permalink
gc:regions: undo the regression introducing changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Araq committed Jan 25, 2019
1 parent 83caa58 commit 70c7348
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/system/gc_regions.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 70c7348

Please sign in to comment.