From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id B565FBCAF for ; Tue, 5 Jul 2005 10:00:41 +0200 (CEST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j6580fT0029110 for ; Tue, 5 Jul 2005 10:00:41 +0200 Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id KAA04903 for ; Tue, 5 Jul 2005 10:00:34 +0200 (MET DST) Received: from moldavcable.com (moldavcable.bendery.md [193.201.204.34]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id j6580V65029098 for ; Tue, 5 Jul 2005 10:00:34 +0200 Received: from localhost (localhost.localdomain [127.0.0.1]) by moldavcable.com (Postfix) with ESMTP id 3C05C249FC for ; Tue, 5 Jul 2005 10:59:47 +0300 (EEST) Received: from moldavcable.com ([127.0.0.1]) by localhost (mlc-gw-l.moldavcable.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16119-04 for ; Tue, 5 Jul 2005 10:59:46 +0300 (EEST) Received: from pm053.mlc.local (pm053 [192.168.50.53]) by moldavcable.com (Postfix) with ESMTP id D20EE24931 for ; Tue, 5 Jul 2005 10:59:46 +0300 (EEST) Date: Tue, 5 Jul 2005 10:59:02 +0300 From: dmitry grebeniuk X-Mailer: The Bat! (v3.5.25) Home Reply-To: dmitry grebeniuk Organization: Moldavcable X-Priority: 3 (Normal) Message-ID: <1082353890.20050705105902@moldavcable.com> To: caml-list@inria.fr Subject: GC question MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at moldavcable.com X-Miltered: at nez-perce with ID 42CA3E29.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 42CA3E1F.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; grebeniuk:01 caml-list:01 heap:01 val:01 heap:01 quicker:98 dmitry:01 dmitry:01 referenced:01 caml:02 caml:02 objects:02 objects:02 allocated:03 unit:03 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on yquem.inria.fr X-Spam-Status: No, score=0.1 required=5.0 tests=FORGED_RCVD_HELO autolearn=disabled version=3.0.2 X-Spam-Level: Hello, caml-list. I have some objects (custom blocks with method suite attached) which can be referenced from caml heap. How to ensure that finalisation function is called for all non-referenced objects? I know, call to caml_gc_full_major(Val_unit) will do this work, but it can be costly when there are many values on the heap (or not?). Are there any quicker solution? (I can make no assumptions about "age" (young/old) of allocated custom blocks and about current GC state) -- WBR, dmitry mailto:gds-mlsts@moldavcable.com