#1364: Finalizers not guaranteed to run before the program exits
----------------------------------+-----------------------------------------
 Reporter:  [EMAIL PROTECTED]  |          Owner:                  
     Type:  feature request       |         Status:  new             
 Priority:  normal                |      Milestone:  6.10 branch     
Component:  Runtime System        |        Version:  6.6.1           
 Severity:  normal                |     Resolution:                  
 Keywords:                        |     Difficulty:  Moderate (1 day)
 Testcase:                        |   Architecture:  Unknown         
       Os:  Unknown               |  
----------------------------------+-----------------------------------------
Changes (by conal):

 * cc: [EMAIL PROTECTED] (added)

Comment:

 Replying to [comment:1 simonmar]:

 > However, we could make an exception for C finalizers registered via
 `Foreign.ForeignPtr`, and give these extra guarantees.  This has been
 requested before, and I think it would be a useful feature.

 As far as I can tell, running finalizers promptly is ''essential'' to
 efficient functional graphics programming on modern hardware.  For
 graphics, C-only finalizers (for graphics resource deallocation) would be
 a perfectly fine restriction to live with.

 Could we get C finalizers executed promptly?  For instance, could they be
 executed at the end of each GC cycle, rather than thread-enqueued?

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1364#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to