Skip to content

Commit eaf03bd

Browse files
stinosdpgeorge
authored andcommitted
py/gc: Trace all marked heads in debug log.
Otherwise only those in gc_mark_subtree get logged, which is incomplete and hence not very useful. Signed-off-by: stijn <stijn@ignitron.net>
1 parent 1ebeee0 commit eaf03bd

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

py/gc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,7 @@ void gc_collect_root(void **ptrs, size_t len) {
439439
size_t block = BLOCK_FROM_PTR(area, ptr);
440440
if (ATB_GET_KIND(area, block) == AT_HEAD) {
441441
// An unmarked head: mark it, and mark all its children
442+
TRACE_MARK(ptr_block, ptr);
442443
ATB_HEAD_TO_MARK(area, block);
443444
#if MICROPY_GC_SPLIT_HEAP
444445
gc_mark_subtree(area, block);

0 commit comments

Comments
 (0)