[ ghc-Bugs-429736 ] "No threads to run" ignores finalizers
Simon Marlow
simonmar@microsoft.com
Thu, 7 Jun 2001 09:59:40 +0100
> > Basically, the problem is that finaliser threads that
> > the next GC would generate aren't taken into account
> > when determining whether there are any more threads to
> > run.
> [..]
> > >Comment By: Simon Marlow (simonmar)
> > Date: 2001-06-04 09:29
> >=20
> > Message:
> > Logged In: YES=20
> > user_id=3D48280
> >=20
> > Fixed: now if we get a deadlock, we try a major GC and if=20
> > this creates any threads we carry on.
> >=20
> > Note that frequently relying on this behaviour is likely to=20
> > be inefficient because of the forced major GC.
>=20
> Cool - thanks.=20
>=20
> How about the issue with having to use a StablePtr to avoid
> the wrong ``indefinitely blockign'' exception on the MVar?
> That might be more tricky to fix.
I can't get it to fail in this way. Which RTS options did you use? It
definitely looks like a bug, though.
Cheers,
Simon