|
Another finalizer question: msg#00028lang.haskell.glasgow.bugs
The library docs say *** newForeignPtr :: ... ...Note that there is no guarantee on how soon the finalizer is executed after the last reference was dropped; this depends on the details of the Haskell storage manager. The only guarantee is that the finalizer runs before the program terminates. *** As others have noted too, there is in fact *no* guarantee that finalizers are called. The only way I found to force calling of finalizers is explicitly calling System.Mem.performGC before the program exits. Is this a bug in the implementation of finalizers or is the documentation wrong or am I just stupid? Ben -- Top level things with identity are evil. -- Lennart Augustsson
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | [ ghc-Bugs-1069656 ] ghc-ghci inconsisteny, SourceForge.net |
|---|---|
| Next by Date: | Readline on Windows?, Koen Claessen |
| Previous by Thread: | [ ghc-Bugs-1069656 ] ghc-ghci inconsisteny, SourceForge.net |
| Next by Thread: | Readline on Windows?, Koen Claessen |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |