mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-23 11:26:52 +00:00
gc:regions: undo the regression introducing changes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user