On 10 January 2011 21:50, Blake McBride <blake@...> wrote:
> I have a need to be able to delete a package (and presumably free its
> memory). I ran some tests and found that both CLISP and ABCL return
> free'd package space (with perhaps some leaks) but SBCL does not. It
> seems that if you repeatably load a package, use it, and then delete
> it, you continue to use more and more space. The test files I am
> using are as follows: (memtest2 must be compiled to run all of the
Yes. This is a known issue -- the crux is that SBCL stores information
about variables, functions, etc. in non-weak global data-structures.
Currently there is no supported (or even unsupported but usable) way
to completely purge all information associated with a package.
The plan (absent time to implement it) is to associate the information
now stored in the global data-structures with the relevant symbols