This is the mail archive of the
mailing list for the Cygwin project.
RE: cygwin & NT memory allocation limit ?
- To: "Cygwin (Adresse de messagerie)" <cygwin at sourceware dot cygnus dot com>
- Subject: RE: cygwin & NT memory allocation limit ?
- From: NOE Nicolas <n dot noe at cstb dot fr>
- Date: Fri, 23 Jun 2000 15:31:56 +0200
>I'm using cygwin & gcc on a 512 Mb PC running NT, and
>it seems that I cannot allocate more than (roughly)
>128 MegaBytes of total memory (either with a single
>malloc call, or with lots of them). Is there's a memory
>allocation limit in cygwin & gcc or am I missing something ?
>(the same program works fine with Watcom C, and I'm using
>cygwin latest release)
>Thanks in advance if anyone can help !
I can't fully answer my question, but I've found a way to malloc
more than 128 Mb. I've read than cygwin uses Doug Lea's malloc
(http://gee.cs.oswego.edu/pub/misc/malloc.c), and I've compiled
it and linked it with my programs, and then, it works.
For instance, the following program fails if compiled with gcc,
and works when linked with Doug Lea's malloc.
void *p = malloc(128 * 1024 * 1024);
Using that other malloc solves my problem, but I'd still like to
know if it's something wrong with my system or a problem with gcc.
Want to unsubscribe from this list?
Send a message to email@example.com