Mail Archives: djgpp/1998/09/02/08:46:07
On Wed, 2 Sep 1998, Neil Townsend wrote:
> Since I started this, I've been looking at the memory behaviour and have
> noticed something rather strange: My machine has 48M, and both CWSDPMI and
> CWSDPR0 recognise this (either HIMEM only or HIMEM + EMM NOEMS NOVCPI) but
> wont actually let me have the final 16M of physical memory. I can allocate
> up to 32M all told just fine, but if I ask for just a bit more it refuses!
If you are asking for 32M plus some more in a single chunk, then this is
a well-known and documented behavior of the `malloc' implementation used
by DJGPP; it has nothing to do with the DPMI server. `malloc' rounds up
the size of the chunk you are asking for to the next integral power of 2,
so when you ask for 32MB + 1 byte, `malloc' actually asks the DPMI server
for 64MB, which you don't have.
- Raw text -