Re: GCC 4.8 out of memory
Robert Elz <[email protected]>
| Newsgroups | gmane.os.netbsd.ports.m68k |
|---|---|
| Message-ID | <[email protected]> |
Date: Tue, 22 Sep 2015 21:06:54 +0200
From: Frank Wille <[email protected]>
Message-ID: <[email protected]>
| Seem like the optimal value for MAXDSIZ would be arround 224MB, which gives
| a maximum data segment of 224MB.
|
| Can somebody explain that?
Most likely malloc() is using mmap(MAP_ANON) for its arena, and that's
using space from the architectural VM limits that is outside what is
permitted for the size of the program and its stack (MAXDSIZ) - as
MAXDSIZ gets bigger, the remaining space before the architectural limit
is reached gets smaller.
kre