From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: * X-Spam-Status: No, score=1.5 required=5.0 tests=SPF_SOFTFAIL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by yquem.inria.fr (Postfix) with ESMTP id B01B3BBAF for ; Sat, 27 Jun 2009 09:47:10 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjYCAJBrRUrUGyoBkWdsb2JhbACBUZcsAQEBAQkLCgcTA7VLhA0F X-IronPort-AV: E=Sophos;i="4.42,300,1243807200"; d="scan'208";a="30272208" Received: from smtp1-g21.free.fr ([212.27.42.1]) by mail3-smtp-sop.national.inria.fr with ESMTP; 27 Jun 2009 09:47:09 +0200 Received: from smtp1-g21.free.fr (localhost [127.0.0.1]) by smtp1-g21.free.fr (Postfix) with ESMTP id C9C01940091; Sat, 27 Jun 2009 09:47:03 +0200 (CEST) Received: from macbookpro.local (lns-bzn-48f-81-56-220-129.adsl.proxad.net [81.56.220.129]) by smtp1-g21.free.fr (Postfix) with ESMTP id A4B389400C4; Sat, 27 Jun 2009 09:47:00 +0200 (CEST) Message-ID: <4A45CF68.2010901@univ-savoie.fr> Date: Sat, 27 Jun 2009 09:51:04 +0200 From: Christophe Raffalli User-Agent: Thunderbird 2.0.0.22 (Macintosh/20090605) MIME-Version: 1.0 To: Tiphaine Turpin Cc: Christophe Raffalli , caml-list@yquem.inria.fr Subject: Re: [Caml-list] Re: Mastering the garbage collector References: <4A439067.8070104@irisa.fr> <4A4399A2.2090301@irisa.fr> <4A43BE22.1080802@univ-savoie.fr> <4A44789B.9000905@irisa.fr> In-Reply-To: <4A44789B.9000905@irisa.fr> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; christophe:01 raffalli:01 raffalli:01 univ-savoie:01 inlining:01 cheers:01 christophe:01 garbage:01 caml-list:01 let:03 solved:04 problem:05 problem:05 liveness:05 variable:06 >> 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. Cheers, Christophe