Skip to content

Commit

Permalink
Fix freeze.
Browse files Browse the repository at this point in the history
  • Loading branch information
NJdevPro committed Oct 31, 2024
1 parent 783e001 commit 6c3d68b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gc.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ static void gc(void *root) {
while (scan1 < scan2) { // 將 root 指向的物件從 scan1 (FROM) 搬到 scan2 (to) 去
switch (scan1->type) {
case TINT:
case TSTRING:
case TSYMBOL:
case TPRIMITIVE:
// Any of the above types does not contain a pointer to a GC-managed object.
Expand Down

0 comments on commit 6c3d68b

Please sign in to comment.