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] Size limitation on input_value
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2004-07-27 (12:04)
From: Yaron Minsky <yminsky@g...>
Subject: Re: [Caml-list] Re: Size limitation on input_value
My apologies.  I only realized that we'd added the -vmthread flag
after you pointed out that  you couldn't reproduce the problem.


On Tue, 27 Jul 2004 09:41:19 +0200, Xavier Leroy <> wrote:
> > Interesting.  I can't replicate this on a stock ocaml toplevel.  It
> > does occur, however, on a toplevel with vmthreads compiled in.
> Ah, you should have said that earlier.  With vmthreads, input_value
> and output_value go through an intermediate buffer which is a Caml string
> (this is required because vmthreads must avoid blocking I/O system
> calls, hence all I/O must be performed at the Caml level).  So, the
> size of the data written by output_value or read by input_value is
> limited by the maximal length of a Caml string.
> This limitation of vmthreads isn't new in 3.08, it's been present from
> the beginning.
> - Xavier Leroy

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: