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.0 required=5.0 tests=none autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id B90BCBC0B for ; Fri, 15 Dec 2006 11:56:09 +0100 (CET) Received: from smeltpunt.science.ru.nl (smeltpunt.science.ru.nl [131.174.16.145]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id kBFAu8Yw007975 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Fri, 15 Dec 2006 11:56:09 +0100 Received: from tandem.cs.ru.nl [131.174.142.18] (helo=tandem.cs.ru.nl) by smeltpunt.science.ru.nl (8.13.7/5.10) with ESMTP id kBFAu8FT020672; Fri, 15 Dec 2006 11:56:08 +0100 (MET) Received: from tews by tandem.cs.ru.nl with local (Exim 4.63) (envelope-from ) id 1GvAjY-00038V-8J; Fri, 15 Dec 2006 11:56:08 +0100 From: Hendrik Tews To: Hendrik Tews Cc: caml-list@inria.fr Subject: Re: [Caml-list] caml_oldify_local_roots takes 50% of the total runtime References: <17727.34685.561877.977822@tandem.cs.ru.nl> Date: Fri, 15 Dec 2006 11:56:08 +0100 In-Reply-To: <17727.34685.561877.977822@tandem.cs.ru.nl> (Hendrik Tews's message of "Wed, 25 Oct 2006 17:49:17 +0200") Message-ID: User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Scanned-By: MIMEDefang 2.56 on 131.174.16.145 X-Miltered: at concorde with ID 45827F48.001 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; hendrik:01 tews:01 tews:01 oldify:01 runtime:01 ocaml:01 hendrik:01 heap:01 doligez:01 minor:01 caml-list:01 caml:02 caml:02 variables:02 objects:02 Hi, issue 4145 (http://caml.inria.fr/mantis/view.php?id=4145) has been closed in the meantime because doligez - 2006-11-15 13:19 ---------------------------------------------------------------------- Unfortunately, we cannot know which global C roots point to the minor heap, since we don't have a write barrier on C variables. I find this reason not satisfying at all. If a write barrier is needed, then one could easily stipulate one by providing a suitable macro CAML_modify_global_root. With the above line of reasoning it should not be allowed to hold any ocaml value in a C variable, because a write barrier is needed for objects that are not in the young generation. Hendrik