Olivier Dion schreef op wo 22-12-2021 om 09:46 [-0500]: > From `eval-in-sandbox` documentation: > > If SEVER-MODULE? is true (the default), the module will be unlinked > from the global module tree after the evaluation returns, to allow MOD > to be garbage-collected. > > So I _think_ you're guarantee here that all references in your module > will be garbage collected. You can then do a single `gc/finalizer`.
No, there are no guarantees, because the GC (bdw-gc) is conservative. However, _most_ unreachable objects should be collected (though not all!).