mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-16 00:30:21 +02:00
Work around unintentional retention of modules by the GC.
This reverts par of "Document the failure of `gc.test' wrt. unused modules."
(commit 328efeb9a6
.)
* ice-9/boot-9.scm (set-module-eval-closure!): Don't set the `module' property
on CLOSURE.
* libguile/modules.c (scm_lookup_closure_module): Call `abort ()' to make it
clear that code that uses the `module' property no longer works. That code
is unused anyway.
This commit is contained in:
parent
00b8057d1f
commit
490cf75094
3 changed files with 19 additions and 8 deletions
|
@ -255,7 +255,13 @@ scm_lookup_closure_module (SCM proc)
|
|||
return SCM_PACK (SCM_SMOB_DATA (proc));
|
||||
else
|
||||
{
|
||||
SCM mod = scm_procedure_property (proc, sym_module);
|
||||
SCM mod;
|
||||
|
||||
/* FIXME: The `module' property is no longer set. See
|
||||
`set-module-eval-closure!' in `boot-9.scm'. */
|
||||
abort ();
|
||||
|
||||
mod = scm_procedure_property (proc, sym_module);
|
||||
if (scm_is_false (mod))
|
||||
mod = the_root_module ();
|
||||
return mod;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue