1
0
mirror of https://github.com/janet-lang/janet synced 2025-11-18 08:15:13 +00:00

Change import semantics. Fix gc bug with fibers.

This commit is contained in:
Calvin Rose
2018-05-18 20:53:19 -04:00
parent 36ecbeffa6
commit 68895e27d4
7 changed files with 49 additions and 14 deletions

View File

@@ -188,9 +188,7 @@ recur:
return;
dst_gc_mark(fiber);
/* Check if new fiber - all status bits sets indicate :new status */
if ((fiber->flags & DST_FIBER_STATUS_MASK) == DST_FIBER_STATUS_MASK)
dst_mark_function(fiber->root);
dst_mark_function(fiber->root);
i = fiber->frame;
j = fiber->stackstart - DST_FRAME_SIZE;