Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Can GC be BLOCKed?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2006-11-30 (03:07)
From: James Woodyatt <jhwoodyatt@m...>
Subject: Re: [Caml-list] Can GC be BLOCKed?
On Nov 29, 2006, at 4:33 PM, Neal Wang wrote:
> I have a function which cannot be interrupted by GC?  Is there a  
> way to BLOCK GC when the function is called.  Thanks

We're getting some interesting spam on the OCaml list now.  Just  
after the message above appeared in my inbox, there came the  

On Nov 29, 2006, at 5:22 PM, Rosendo Larson wrote:
> The lot is cast into the heap, but the whole disposing there of is  
> of the Lord. There never was a great soul that did not have some  
> divine inspiration.

At first, I thought this was intended to be a serious response to the  

I don't think you can stop collection from happening by explicitly  
blocking it in the GC, but if you know how much memory your function  
will allocate, you might be able to get a winning workaround by  
modifying the GC control parameters for space_overhead and  
major_head_increment.  Use the verbose flag to see if your function  
is triggering the collection phase.

j h woodyatt <>