#5897: GHC runtime task workers are not released with C FFI
-------------------------------+--------------------------------------------
  Reporter:  sanketr           |          Owner:                
      Type:  bug               |         Status:  closed        
  Priority:  highest           |      Milestone:  7.4.2         
 Component:  Runtime System    |        Version:  7.4.1         
Resolution:  fixed             |       Keywords:  worker, ffi   
        Os:  Unknown/Multiple  |   Architecture:  x86_64 (amd64)
   Failure:  None/Unknown      |     Difficulty:  Unknown       
  Testcase:                    |      Blockedby:                
  Blocking:                    |        Related:  #4262         
-------------------------------+--------------------------------------------

Comment(by sanketr):

 Replying to [comment:12 simonmar]:
 > I looked into your example again.  Although the RTS was not keeping all
 the OS threads around, it ''was'' retaining information about each OS
 thread that had been used as a worker in the past, and this was being
 printed in the output of `+RTS -s`.  Since keeping around all this
 information could constitute a space leak, I've dropped it (see the commit
 above).
 >
 > The example program above used to leak space over time, now it runs in
 constant space.
 >
 > The per-Task stats weren't particularly useful anyway, even for me.

 Terrific! The per-task stats now look much more useful after this fix.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/5897#comment:13>
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