gc:regions: undo the regression introducing changes
This commit is contained in:
parent
83caa58c7a
commit
70c7348d3e
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue