This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Use VirtualAlloc() more flexibly when using it to mimic UNIX's sbrk().
authorSteve Hay <SteveHay@planit.com>
Fri, 16 Jul 2004 12:16:05 +0000 (12:16 +0000)
committerNick Ing-Simmons <nik@tiuk.ti.com>
Fri, 16 Jul 2004 12:16:05 +0000 (12:16 +0000)
commitb2d41e21b21c57718b8e506bc104adc20f931613
treec76e9c806fa21db4d66c55ec9e0e26397af894ba
parent69e39a9aeaf661e41da7db0001d9c91f3c2c89c7
Use VirtualAlloc() more flexibly when using it to mimic UNIX's sbrk().
CC: perl-win32-porters@listserv.ActiveState.com
Message-ID: <40F6B295.8010804@uk.radan.com>

Assumes perl's malloc can now handle non-contiguous memory (believed
to be true).
Does not address threading issues.

"The attached patch (against blead) makes sbrk() initially try to
extend the existing block of memory exactly as it currently does, but
to not  fail immediately if it can't -- it now frees up that part of
whatever it  had previously reserved+committed which hadn't actually
been used yet,  resets all its static variables and basically starts
anew."

p4raw-id: //depot/perl@23128
win32/win32.c