This is the mail archive of the
mailing list for the Cygwin project.
Re: limit for # of items created with "new" ?
- From: Igor Pechtchanski <pechtcha at cs dot nyu dot edu>
- To: Hans Horn <hannes at 2horns dot com>
- Cc: cygwin at cygwin dot com
- Date: Tue, 24 Sep 2002 18:59:11 -0400 (EDT)
- Subject: Re: limit for # of items created with "new" ?
- Reply-to: cygwin at cygwin dot com
Don't forget the object headers - depending on which options you use, they
can be 8 bytes per object. It would really help to see the source of the
crashing program, at least the snippet with the allocation and
On Tue, 24 Sep 2002, Hans Horn wrote:
> I just realized that the number of objects I've allocated is about
> 1,600,000, NOT 160,000!
> But still, each object (nodes of a singly linked list) weighs only 8 byte.
> "Hans Horn" <firstname.lastname@example.org> wrote in message email@example.com">news:firstname.lastname@example.org...
> > List,
> > I am experiencing a problem when I need to allocate a large number of
> > small objects with new. (cygwin 126.96.36.199, gcc 3.2). Up to about 160
> > 000 objects I'm doing fine, but above the process receives a sigterm
> > and croaks.
> > On occasion, even the entire bash shell becomes corrupt and needs to
> > be shut down. When this happens, the bash shell complains :
> > *** mount version mismatch detected - 0xA820/0x1B.
> > You have multiple copies of cygwin1.dll on your system.
> > Search for cygwin1.dll using the Windows Start->Find/Search facility
> > and delete all but the most recent version. The most recent version
> > *should* reside in x:\cygwin\bin, where 'x' is the drive on which you
> > have installed the cygwin distribution.
> > Is there a maximum numbers of "new-allocatable" objects? If yes, is
> > this number configurable?
> > thx a lot,
> > Hans
> > P.s. Btw, I'm running Win2k with 512 MByte memory. When I watch the
> > process die in task manager, the total memory load is at about 450
> > MByte.
|\ _,,,---,,_ email@example.com
ZZZzz /,`.-'`' -. ;-;;,_ firstname.lastname@example.org
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
"Water molecules expand as they grow warmer" (C) Popular Science, Oct'02, p.51
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html