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=0.1 required=5.0 tests=AWL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id 210ECBBAF for ; Thu, 25 Jun 2009 16:58:34 +0200 (CEST) X-IronPort-AV: E=Sophos;i="4.42,290,1243807200"; d="scan'208";a="28735802" Received: from arvin.irisa.fr (HELO [131.254.11.86]) ([131.254.11.86]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 25 Jun 2009 16:58:33 +0200 Message-ID: <4A439067.8070104@irisa.fr> Date: Thu, 25 Jun 2009 16:57:43 +0200 From: Tiphaine Turpin User-Agent: Thunderbird 2.0.0.19 (X11/20090216) MIME-Version: 1.0 To: caml-list@yquem.inria.fr Subject: Mastering the garbage collector Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; irisa:01 -inline:01 garbage:01 garbage:01 data:02 compiling:02 root:04 notion:04 generally:04 intermediate:05 somewhere:06 function:08 memory:09 memory:09 encapsulate:10 Hi, I have difficulties with the garbage colloector. I have a program that use a lot of memory to build a small result, before doing something else. I expected all the memory but the result to be collected when doing a full_major, but this is not the case. I have tried to encapsulate all references to the large intermediate data in a function, compiling with -inline 0, but it does not work. Any idea ? More generally, is there a specification of the notion of root used by the garbage collector somewhere ? Thanks, Tiphaine