
11 Jan
2006
11 Jan
'06
1:02 p.m.
Simon Marlow wrote:
You can change the allocation area size from within a program quite easily. Write a little C function to assign to 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.
Can someone supply a code snippet for me (as I don't speak C and always hoped to avoid C by using haskell)? Christian