Browse Source
Currently, the only place that clears the bit is in gc_collect. So if a block with a finalizer is allocated, and subsequently freed, and then the block is reallocated with no finalizer then the bit remains set. This could also be fixed by having gc_alloc clear the bit, but I'm pretty sure that free is called way less than alloc, so doing it in free is more efficient.pull/1589/merge
Dave Hylands
9 years ago
committed by
Damien George
2 changed files with 5 additions and 1 deletions
Loading…
Reference in new issue