storing highly shared data structures

Bulat Ziganshin bulatz at
Thu Jan 12 07:11:43 EST 2006

Hello Christian,

Wednesday, January 11, 2006, 4:02:10 PM, you wrote:

>> RtsFlags.GcFlags.minAllocAreaSize (#include "RtsFlags.h" first), and
>> call it from Haskell; the next time GC runs it will allocate the larger 
>> nursery.  Please try this and let me know if it works.

CM> Can someone supply a code snippet for me (as I don't speak C and always 
CM> hoped to avoid C by using haskell)?

are you sure that you need this? if you only need to "burn in" "+RTS
-A" option value, it's enough to use documented way:

char *ghc_rts_opts = "-A10m";

(see 4.14.5 in GHC user manual)

the trick provided by Simon need only to change "-A" during program
execution, for example depending on options or around GC-unfriendly
part of program

Best regards,
 Bulat                            mailto:bulatz at

More information about the Glasgow-haskell-users mailing list