From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 90F15BBAF for ; Thu, 25 Nov 2010 00:41:06 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Am4AAOIw7UzZdAA1kWdsb2JhbACjCRUBAQEBCQsKBxEFHb1nhUcEimCDKQ X-IronPort-AV: E=Sophos;i="4.59,250,1288566000"; d="scan'208";a="80903760" Received: from correo15.acens.net ([217.116.0.53]) by mail2-smtp-roc.national.inria.fr with ESMTP; 25 Nov 2010 00:41:06 +0100 Received: (qmail 8528 invoked from network); 24 Nov 2010 23:41:05 -0000 Received: from unknown (HELO minimax.lan) (dsolaz.sistelcom.com@[90.164.93.9]) (envelope-sender ) by correo15.acens.net (qmail-ldap-1.03) with SMTP for ; 24 Nov 2010 23:41:05 -0000 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1082) Subject: Re: [Caml-list] OCaml memory leak issue From: DS In-Reply-To: <87lj4ipcqk.fsf@frosties.localnet> Date: Thu, 25 Nov 2010 00:41:04 +0100 Content-Transfer-Encoding: 7bit Message-Id: <9C5FD85D-4AA0-443B-A626-BC4401712709@sol42.com> References: <201011231954241577004@cecs.pdx.edu> <20101124093035.473bd2e5@deb0> <87lj4ipcqk.fsf@frosties.localnet> To: caml-list X-Mailer: Apple Mail (2.1082) X-Spam: no; 0.00; ocaml:01 tokens:01 pervasives:01 42.:98 wrote:01 caml-list:01 caml:02 exit:04 finalize:05 blocks:07 function:08 memory:09 error:12 case:13 leak:14 On 24 Nov 2010, at 23:40, Goswin von Brederlow wrote: > In case of custom blocks and finalize function I believe this to be an > error. Managing resources that the OS does not free (IPC tokens, > tempfiles, ...) is made much harder due to this. But you can force a final GC run with Pervasives.at_exit Gc.full_major. Regards. -DS