
10 Jun
2004
10 Jun
'04
7:07 a.m.
I don't see why GHC can't have a 'callAllOutstandingFinalizers' call as part of _exit() or something... Keean.

10 Jun
10 Jun
11:39 a.m.
New subject: Finalizers and FFI
On Thursday 10 June 2004 12:07, MR K P SCHUPKE wrote:
I don't see why GHC can't have a 'callAllOutstandingFinalizers' call as part of _exit() or something...
You can do that if your finalizers are written in C (and don't call back into Haskell) but if they are written in Haskell then you potentially finalize an object before its last use because one of the other finalizers uses it. To fix this, you have to run the finalizers in the "right order" but how can you tell what the right order is? -- Alastair Reid
7651
Age (days ago)
7651
Last active (days ago)
1 comments
2 participants
participants (2)
-
Alastair Reid
-
MR K P SCHUPKE