mirror of
https://github.com/nim-lang/Nim.git
synced 2026-06-06 03:44:14 +00:00
fixes withRegion for --gc:stack
This commit is contained in:
@@ -9,7 +9,6 @@
|
||||
|
||||
# Low level allocator for Nim. Has been designed to support the GC.
|
||||
# TODO:
|
||||
# - eliminate "used" field
|
||||
# - make searching for block O(1)
|
||||
{.push profiler:off.}
|
||||
|
||||
|
||||
@@ -79,7 +79,7 @@ template withRegion*(r: MemRegion; body: untyped) =
|
||||
try:
|
||||
body
|
||||
finally:
|
||||
r = tlRegion
|
||||
#r = tlRegion
|
||||
tlRegion = oldRegion
|
||||
|
||||
template inc(p: pointer, s: int) =
|
||||
|
||||
Reference in New Issue
Block a user