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
Mastering the garbage collector
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2009-06-27 (07:47)
From: Christophe Raffalli <raffalli@u...>
Subject: Re: [Caml-list] Re: Mastering the garbage collector

>> let x = ... in
>> (* here you are not sure x is collected even if the variable does not
>> appear after this comment *)
> Thanks for making this clear. I was indeed thinking that collecting x 
> here could require some sort of variable liveness analysis, and that the
> GC might not be that smart, and this is why I tried to put x in a
> function and prevent inlining, but I don't know if it is enough to make
> x definitely unreachable.
If your problem is still not solved, may be you should post your code or 
an example reproducing the problem.