Subject: Re: bug#18995: Error: Could not reserve dynamic heap area.

From: Eli Zaretskii <[email-masked]>
Date: Sun, 09 Nov 2014 18:49:44 +0200

> Date: Sun, 9 Nov 2014 17:39:32 +0100
> From: Alexander Shukaev <[email-masked]>
> Cc: Eli Zaretskii <[email-masked]>, [email-masked], Andreas Schwab <[email-masked]>
> 
> Guys, don't forget one important detail, that this happens only in 32-bit
> build. 64-bit does not have this problem.

Sheer luck: the first call to VirtualAlloc succeeds because it asks
for an amount that is much smaller than the 64-bit address space.

It worked for me in 32 bits for the same reason.

The problem only rears its ugly head when the first call to
VirtualAlloc fails.  Then we need more iterations, which don't happen.