Closed erikvanbilsen closed 7 years ago
Hi,
Yeah that looks like a bug - good catch! As you say those two return
statements should be continue
instead. Let me fix it now.
Thanks,
Dan
Fixed in e193133e43af0862f51edfb9b518e212ea084412
That's fast!
Thanks, Erik
First of all: thanks for sharing you GC. It is one of the easiest-but-functional ones around!
I think this is a bug, but maybe I am not understanding the code correctly? The
tgc_mark
function contains thisfor
loop:Why does it always exit the function when the first TGC_ROOT pointer is encountered? This prevents marking other pointers and marking the stack later on. Shouldn't those two
return
statements becontinue
statements instead?