Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] Possible bug in DynArray module from ExtLib
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-04-03 (22:33)
From: ls-ocaml-developer-2006@m...
Subject: Re: [Caml-list] Possible bug in DynArray module from ExtLib

Florian Weimer <> writes:

> * Dário 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.

So a smarter resizer would be required: One which compares with the
array length limit and satisfies the request with that if necessary
and possible.

Regards -- Markus