[project @ 2000-05-22 13:09:29 by simonmar]
authorsimonmar <unknown>
Mon, 22 May 2000 13:09:29 +0000 (13:09 +0000)
committersimonmar <unknown>
Mon, 22 May 2000 13:09:29 +0000 (13:09 +0000)
commitd3058014b75ef30cc1535dcc6abcf073b3170697
tree18da366507358cffc327b964df15927ee8856e52
parentd0dafffc8d33d1e5cba7921b4f833adc6e5c75f4
[project @ 2000-05-22 13:09:29 by simonmar]
Batch finalizers on a per-GC basis.  That is, after a GC a single
thread is created to run the pending finalizers, rather than creating
a thread for each finalizer.

This is almost as fast as having a global thread to run finalizers,
but doesn't require any global state or special treatment by the
scheduler.
ghc/lib/std/PrelWeak.lhs
ghc/rts/Prelude.c
ghc/rts/Prelude.h
ghc/rts/Weak.c