diff options
author | Damien George <damien.p.george@gmail.com> | 2018-02-19 16:08:20 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2018-02-19 16:08:20 +1100 |
commit | 2a0cbc0d38e8e342c9a54c66a0cca10cae371c6a (patch) | |
tree | 384f64ca1b57fc4cf8dc6432e99388074b60e8c3 /py/gc.c | |
parent | 736faef2233fe9c721b940a108b28808d4c7f7a0 (diff) |
py/gc: Update comment now that gc_drain_stack is called gc_mark_subtree.
Diffstat (limited to 'py/gc.c')
-rw-r--r-- | py/gc.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -341,10 +341,9 @@ void gc_collect_root(void **ptrs, size_t len) { for (size_t i = 0; i < len; i++) { void *ptr = ptrs[i]; if (VERIFY_PTR(ptr)) { - // Mark and push this pointer size_t block = BLOCK_FROM_PTR(ptr); if (ATB_GET_KIND(block) == AT_HEAD) { - // an unmarked head, mark it, and push it on gc stack + // An unmarked head: mark it, and mark all its children TRACE_MARK(block, ptr); ATB_HEAD_TO_MARK(block); gc_mark_subtree(block); |