From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id CB290BBAF for ; Tue, 24 Aug 2010 17:33:46 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgIGAN6Bc0zV+668/2dsb2JhbACTLY4EuxOFNwSENYhC X-IronPort-AV: E=Sophos;i="4.56,263,1280700000"; d="scan'208";a="68162714" Received: from rastageeks.org (HELO mail.rastageeks.org) ([213.251.174.188]) by mail4-smtp-sop.national.inria.fr with ESMTP/TLS/ADH-AES256-SHA; 24 Aug 2010 17:33:46 +0200 Received: from leonard.localnet (unknown [129.81.170.252]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.rastageeks.org (Postfix) with ESMTPSA id ED29549B5E for ; Tue, 24 Aug 2010 17:49:25 +0200 (CEST) From: Romain Beauxis To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] caml_copy_string Date: Tue, 24 Aug 2010 10:35:15 -0500 User-Agent: KMail/1.13.5 (Linux/2.6.32-4-amd64; KDE/4.4.5; x86_64; ; ) References: In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-Id: <201008241035.16215.toots@rastageeks.org> X-Spam: no; 0.00; anil:01 ocaml:01 runtime:01 ocamlopt:01 48,:98 functioning:98 caml-list:01 caml:02 caml:02 string:02 string:02 leroy's:03 xavier:06 ecrit:06 explanation:06 Le mardi 24 ao=FBt 2010 10:22:48, Anil Madhavapeddy a =E9crit : > That's not quite right; "noalloc" calls do not have the OCaml runtime in a > functioning state at all since the instructions to set it up are not > emitted by ocamlopt. >=20 > See [1] for Xavier Leroy's explanation on the matter, which I've quoted > below: That's right. Therefore, calling caml_copy_string in noalloc mode is probab= ly=20 not a good idea.. Romain