fixes withRegion for --gc:stack
This commit is contained in:
parent
d947753523
commit
8db37455dd
2 changed files with 1 additions and 2 deletions
|
|
@ -9,7 +9,6 @@
|
||||||
|
|
||||||
# Low level allocator for Nim. Has been designed to support the GC.
|
# Low level allocator for Nim. Has been designed to support the GC.
|
||||||
# TODO:
|
# TODO:
|
||||||
# - eliminate "used" field
|
|
||||||
# - make searching for block O(1)
|
# - make searching for block O(1)
|
||||||
{.push profiler:off.}
|
{.push profiler:off.}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -79,7 +79,7 @@ template withRegion*(r: MemRegion; body: untyped) =
|
||||||
try:
|
try:
|
||||||
body
|
body
|
||||||
finally:
|
finally:
|
||||||
r = tlRegion
|
#r = tlRegion
|
||||||
tlRegion = oldRegion
|
tlRegion = oldRegion
|
||||||
|
|
||||||
template inc(p: pointer, s: int) =
|
template inc(p: pointer, s: int) =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue