Avoid the garbage collection of foreign modules.

This commit is contained in:
goffioul 2005-10-24 09:38:48 +00:00
parent 893a514da4
commit 2ac98f0572

View file

@ -417,8 +417,10 @@ OUTPUT:
mp_giveup_lock(symbol_value(@'mp::+load-compile-lock+'));
} CL_UNWIND_PROTECT_END;
#endif
if (type_of(output) == t_codeblock)
if (type_of(output) == t_codeblock) {
output->cblock.locked |= 1;
@(return output)
}
else
FEerror("LOAD-FOREIGN-MODULE: Could not load foreign module ~S (Error: ~S)", 2, filename, output);
}