From 40bfe13895d4b76995ab18a1b120c2cd558056ce Mon Sep 17 00:00:00 2001 From: Yuichi Nishiwaki Date: Fri, 22 Nov 2013 07:30:29 -0800 Subject: [PATCH] add a comment to sweep algorithm --- src/gc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gc.c b/src/gc.c index d5ec4f22..a69087f8 100644 --- a/src/gc.c +++ b/src/gc.c @@ -449,7 +449,7 @@ gc_sweep_phase(pic_state *pic) continue; for (p = bp + bp->s.size; p != bp->s.ptr; p += p->s.size) { if (! gc_is_marked(p)) { - p->s.ptr = f; + p->s.ptr = f; /* For dead objects we can safely reuse ptr field */ f = p; } gc_unmark(p);