Delete fiber context when it exits (memleak fix)
Few correctness changes to gc stack management.
This commit is contained in:
parent
9a754156d7
commit
ff1bf74554
3 changed files with 33 additions and 7 deletions
|
|
@ -72,8 +72,11 @@ type
|
|||
|
||||
GcHeap {.final, pure.} = object # this contains the zero count and
|
||||
# non-zero count table
|
||||
stack: ptr GcStack
|
||||
stackBottom: pointer
|
||||
when defined(nimCoroutines):
|
||||
stack: ptr GcStack
|
||||
stackActive: ptr GcStack
|
||||
else:
|
||||
stackBottom: pointer
|
||||
cycleThreshold: int
|
||||
when useCellIds:
|
||||
idGenerator: int
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue