Skip to content

garbage collection invokation, query functions for realtime

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.

Trac metadata
Trac field Value
Version 7.4.2
Type FeatureRequest
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information