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 discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id 0FE38BC69 for ; Sat, 31 Mar 2007 22:35:02 +0200 (CEST) Received: from mail.enyo.de (mail.enyo.de [212.9.189.167]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id l2VKZ0YF013865 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO) for ; Sat, 31 Mar 2007 22:35:01 +0200 Received: from deneb.vpn.enyo.de ([212.9.189.177] helo=deneb.enyo.de) by mail.enyo.de with esmtp id 1HXkHr-0000dq-CD; Sat, 31 Mar 2007 22:34:59 +0200 Received: from fw by deneb.enyo.de with local (Exim 4.63) (envelope-from ) id 1HXkHo-0002Nl-Gv; Sat, 31 Mar 2007 22:34:56 +0200 From: Florian Weimer To: =?iso-8859-1?Q?D=E1rio_Abdulrehman?= Cc: caml-list@inria.fr Subject: Re: [Caml-list] Possible bug in DynArray module from ExtLib References: <6120f6690703311115p78e1a981h1c8fe849c8d36742@mail.gmail.com> Date: Sat, 31 Mar 2007 22:34:56 +0200 In-Reply-To: <6120f6690703311115p78e1a981h1c8fe849c8d36742@mail.gmail.com> (=?iso-8859-1?Q?D=E1rio?= Abdulrehman's message of "Sat, 31 Mar 2007 19:15:49 +0100") Message-ID: <87irchm9sf.fsf@mid.deneb.enyo.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Miltered: at discorde with ID 460EC5F4.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; bug:01 arrays:01 ocaml's:01 rio:98 exception:01 caml-list:01 functions:01 florian:03 seems:03 module:03 entries:05 exponential:06 million:93 probably:07 memory:08 * D=E1rio Abdulrehman: > 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. The exponential resizer probably exceeds Ocaml's array length limit, while direct creation does not.