summaryrefslogtreecommitdiff
path: root/unix/gccollect.c
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-02-11 18:01:38 +0200
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-02-11 18:09:50 +0200
commit723a6ed37175fcade87802c8ab44325971446020 (patch)
tree11d436a729546bbc5ba84b6cf7da719b1ad860d7 /unix/gccollect.c
parent20632e4d3f580b989fa14f58b72896e2cfdeb34b (diff)
More GC debugging improvements.
Diffstat (limited to 'unix/gccollect.c')
-rw-r--r--unix/gccollect.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/unix/gccollect.c b/unix/gccollect.c
index cb2cc7a03..60bc99323 100644
--- a/unix/gccollect.c
+++ b/unix/gccollect.c
@@ -48,6 +48,8 @@ void gc_helper_get_regs(regs_t arr) {
#endif
void gc_collect(void) {
+ //gc_dump_info();
+
gc_collect_start();
// this traces .data and .bss sections
extern char __bss_start, _end;
@@ -59,14 +61,8 @@ void gc_collect(void) {
gc_collect_root((void**)&regs, ((uint32_t)stack_top - (uint32_t)&regs) / sizeof(uint32_t));
gc_collect_end();
- if (0) {
- // print GC info
- gc_info_t info;
- gc_info(&info);
- printf("GC: total: " UINT_FMT ", used: " UINT_FMT ", free: " UINT_FMT "\n", info.total, info.used, info.free);
- printf(" No. of 1-blocks: " UINT_FMT ", 2-blocks: " UINT_FMT ", max blk sz: " UINT_FMT "\n",
- info.num_1block, info.num_2block, info.max_block);
- }
+ //printf("-----\n");
+ //gc_dump_info();
}
#endif //MICROPY_ENABLE_GC