[project @ 1999-02-26 17:43:55 by simonm]
authorsimonm <unknown>
Fri, 26 Feb 1999 17:43:55 +0000 (17:43 +0000)
committersimonm <unknown>
Fri, 26 Feb 1999 17:43:55 +0000 (17:43 +0000)
commit250cd3d0c38ec23d42c38bbcaf4e9e64d5b42089
tree55ec7d7e85f13e27bb69b82026704c09b04574f2
parent1c6ab1d890a9560561319d7a8cfa923bd7e96a60
[project @ 1999-02-26 17:43:55 by simonm]
Allow the memo table itself to be collected when the function becomes
unreachabl.

- individual finalizers refer back to the memo table
  via a weak pointer.

- a finalizer for the whole table walks through each
  bucket calling 'finalize' on every weak pointer.
ghc/lib/misc/Memo.lhs