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=1.4 required=5.0 tests=HTML_MESSAGE,SPF_NEUTRAL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id 80CD2BC69 for ; Sat, 31 Mar 2007 20:15:51 +0200 (CEST) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.174]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l2VIFoTf026389 for ; Sat, 31 Mar 2007 20:15:51 +0200 Received: by ug-out-1314.google.com with SMTP id k3so1204610ugf for ; Sat, 31 Mar 2007 11:15:50 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; b=ljZP7+lvce/CTq2smpVYacyUi+PbD4AOflJRte7VRyBv4b43p/JULOQENZSsd5Y4CO6oGbHhlskYmEOs3VR+Gex8891EoDJT7i9lolMBB5YIlGUi+sttnec7u3shTgKAQ5oP02/RG1wNekvECM326EkPNl5e59frWOnz6MeI9zo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=dXH2Sn7/rGYpJmBSYiDyqLnHA9YwoU2XEpBaIBoTZkWZF89VOw5V4f3zbIk8GBJNkRxXtnC+4qY80Kgb3Y+OoBwNVVhIqIRCMRmoW1LizCuQoEx3Sc3Xnhct00qQO8AiNCv8mN46SWnnUGY21JPQyB8Uf9+mzqSHCc6CDleX7DY= Received: by 10.114.75.1 with SMTP id x1mr1280254waa.1175364949889; Sat, 31 Mar 2007 11:15:49 -0700 (PDT) Received: by 10.115.55.9 with HTTP; Sat, 31 Mar 2007 11:15:49 -0700 (PDT) Message-ID: <6120f6690703311115p78e1a981h1c8fe849c8d36742@mail.gmail.com> Date: Sat, 31 Mar 2007 19:15:49 +0100 From: "=?ISO-8859-1?Q?D=E1rio_Abdulrehman?=" To: caml-list@inria.fr Subject: [Caml-list] Possible bug in DynArray module from ExtLib MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_87416_2918712.1175364949753" X-j-chkmail-Score: MSGID : 460EA556.000 on discorde : j-chkmail score : X : 0/20 1 0.000 -> 1 X-Miltered: at discorde with ID 460EA556.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; bug:01 arrays:01 arrays:01 rio:98 rio:98 exception:01 exception:01 caml-list:01 functions:01 functions:01 seems:03 seems:03 module:03 let:03 let:03 ------=_Part_87416_2918712.1175364949753 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline The first of the following functions causes a "Fatal error: exception Out_of_memory", while the second works fine. This error seems to occur when creating large arrays with more than 2 million and something entries. Anyone noticed this error? Thanks. let test_dynarray1 () =3D let a =3D DynArray.create () in for i =3D 1 to 2817131 do DynArray.add a i done let test_dynarray2 () =3D let a =3D DynArray.make 2817131 in for i =3D 1 to 2817131 do DynArray.add a i done --=20 D=E1rio Abdulrehman ------=_Part_87416_2918712.1175364949753 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline The first of the following functions causes a "Fatal error: exception = Out_of_memory", while the second works fine.
This error seems to oc= cur when creating large arrays with more than 2 million and something entri= es.
Anyone noticed this error?

Thanks.

  let test_dynarray1 = () =3D
    let a =3D DynArray.create () in
  = ;  for i =3D 1 to 2817131 do
      DynArra= y.add a i
    done

  let test_dynarray2 () = =3D
    let a =3D=20 DynArray.make 2817131 in
    for i =3D 1 to 2817131 do      DynArray.add a i
    done=


--
D=E1rio Abdulrehman ------=_Part_87416_2918712.1175364949753--