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()
|
proc deallocOsPages(r: var MemRegion) = r.deallocAll()
|
||||||
|
|
||||||
template withScratchRegion*(body: untyped) =
|
when false:
|
||||||
let obs = obstackPtr()
|
let obs = obstackPtr()
|
||||||
try:
|
try:
|
||||||
body
|
body
|
||||||
finally:
|
finally:
|
||||||
setObstackPtr(obs)
|
setObstackPtr(obs)
|
||||||
|
|
||||||
when false:
|
template withScratchRegion*(body: untyped) =
|
||||||
var scratch: MemRegion
|
var scratch: MemRegion
|
||||||
let oldRegion = tlRegion
|
let oldRegion = tlRegion
|
||||||
tlRegion = scratch
|
tlRegion = scratch
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue