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 concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id 56D1ABC69 for ; Sat, 31 Mar 2007 18:19:52 +0200 (CEST) Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.230]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id l2VGJoSn031675 for ; Sat, 31 Mar 2007 18:19:51 +0200 Received: by nz-out-0506.google.com with SMTP id l8so729147nzf for ; Sat, 31 Mar 2007 09:19:47 -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=sa8O5ySb6iwq7UX6/MG+smhSp1KFUbXVGEHYGWtDl5QaJQz/P8HhH8b9Pz2qxuYfiFJ4X8YIJM4uD1IsmZAkjizddFw2PKtqpOCZUd653DzwR+6EQgvPZRfrQr1iU+OFjqi62cJlI1RiqzFtUohqbyRqcgd8NlCpCxe9zNvJynQ= 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=ClwBQgkaOnJX16+xmGx7dKBAOECA126lRW+Ya2rmvuPLQyjOTvhNWpbDVvL5Iyir1YALezp6AGNFdL0JTll50A2ToiUy4Bom3vhPgO5B1nBFliwtjKtcliLk4JIYonl2NwPah654dyzqSH4vJ5VAh7VYck4qoRGP3tj5ORPKKhE= Received: by 10.114.131.2 with SMTP id e2mr1228829wad.1175357986023; Sat, 31 Mar 2007 09:19:46 -0700 (PDT) Received: by 10.115.55.9 with HTTP; Sat, 31 Mar 2007 09:19:45 -0700 (PDT) Message-ID: <6120f6690703310919k27bb993eufd46e021a0aeb9e3@mail.gmail.com> Date: Sat, 31 Mar 2007 17:19:45 +0100 From: "=?ISO-8859-1?Q?D=E1rio_Abdulrehman?=" To: caml-list@inria.fr Subject: possible bug in DynArray module of ExtLib MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_86331_30227793.1175357985986" X-j-chkmail-Score: MSGID : 460E8A26.001 on concorde : j-chkmail score : X : 0/20 1 0.000 -> 1 X-Miltered: at concorde with ID 460E8A26.001 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 functions:01 functions:01 seems:03 seems:03 module:03 let:03 let:03 entries:05 ------=_Part_86331_30227793.1175357985986 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 past 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_86331_30227793.1175357985986 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 past 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
      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_86331_30227793.1175357985986--