[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Need help embedding Guile
From: |
Maxime Devos |
Subject: |
Re: Need help embedding Guile |
Date: |
Wed, 22 Dec 2021 15:23:42 +0000 |
User-agent: |
Evolution 3.38.3-1 |
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!).