Delete fiber context when it exits (memleak fix)

Few correctness changes to gc stack management.
This commit is contained in:
Rokas Kupstys 2017-02-13 12:13:48 +02:00
commit ff1bf74554
3 changed files with 33 additions and 7 deletions

View file

@ -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