[GHC] #7121: garbage collection invokation, query functions for realtime

GHC cvs-ghc at haskell.org
Sun Aug 5 21:05:52 CEST 2012


#7121: garbage collection invokation, query functions for realtime
------------------------------+---------------------------------------------
 Reporter:  centaurian_slug   |          Owner:                  
     Type:  feature request   |         Status:  new             
 Priority:  normal            |      Component:  Compiler        
  Version:  7.4.2             |       Keywords:                  
       Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
  Failure:  None/Unknown      |       Testcase:                  
Blockedby:                    |       Blocking:                  
  Related:                    |  
------------------------------+---------------------------------------------
 how about a function such as this:-
 invokeGarbageCollector :: IO (int,int)

 which can be called in a "main loop" for interactive realtime application
 to ensure garbage does not build up between frames.
 returning (bytes used,bytes free) would give scope for making
 caching/throttling decisions.
 perhaps further options for passing a number of generations to affect, or
 an allowed amount of memory to move.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7121>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler



More information about the Glasgow-haskell-bugs mailing list