2 ms·
> Moreover, when refcounted objects finalize, they recursively drop the refs they hold. You can (at the cost of some additional complication) make this more de
by dllthomas 10y ago
> Moreover, when refcounted objects finalize, they recursively drop the refs they hold.
You can (at the cost of some additional complication) make this more deterministic by adding newly-dead objects to a "finalize this soon" queue and chewing through that when you have time (or on a different thread).