gc_common: typo

This commit is contained in:
Andreas Rumpf 2019-09-16 19:03:17 +02:00
commit 77c6425e65

View file

@ -414,7 +414,7 @@ proc prepareDealloc(cell: PCell) =
# the finalizer could invoke something that # the finalizer could invoke something that
# allocates memory; this could trigger a garbage # allocates memory; this could trigger a garbage
# collection. Since we are already collecting we # collection. Since we are already collecting we
# prevend recursive entering here by a lock. # prevent recursive entering here by a lock.
# XXX: we should set the cell's children to nil! # XXX: we should set the cell's children to nil!
inc(gch.recGcLock) inc(gch.recGcLock)
(cast[Finalizer](t.finalizer))(cellToUsr(cell)) (cast[Finalizer](t.finalizer))(cellToUsr(cell))