Mail Archives: djgpp/1995/10/01/12:59:24
> Is that the reason that a program is unable to malloc() more than half of
> the available physical RAM when virtual memory is disabled? When you ask
> for 8MB, the program actually asks for a few bytes more, because of
> malloc() overhead, right?
This may be the cause. Some DPMI providers use a strange algorithm when
resizing memory blocks, which also prevents a single block from being
resized to more than 1/2 the memory available. When in doubt, call
sbrk() directly.
- Raw text -