Prevent segfault on ARM

This commit is contained in:
Justin Ethier 2018-10-02 18:59:33 -04:00
parent 2aaeababb9
commit b69f4f7233
2 changed files with 10 additions and 2 deletions

View file

@ -1,5 +1,11 @@
# Changelog # Changelog
## TBD - TBD
Bug Fixes
- Prevent GC segmentation fault on ARM platforms (Raspberry Pi 2).
## 0.9.3 - October 1, 2018 ## 0.9.3 - October 1, 2018
Features Features

6
gc.c
View file

@ -1985,8 +1985,10 @@ fprintf(stdout, "done tracing, cooperator is clearing full bits\n");
unswept++; unswept++;
} }
} }
h_head->num_unswept_children = unswept; if (h_head) {
//printf("set num_unswept_children = %d computed = %d\n", h_head->num_unswept_children, gc_num_unswept_heaps(h_head)); h_head->num_unswept_children = unswept;
//printf("set num_unswept_children = %d computed = %d\n", h_head->num_unswept_children, gc_num_unswept_heaps(h_head));
}
} }
// At least for now, let the main thread help clean up any terminated threads // At least for now, let the main thread help clean up any terminated threads