init_cheap and _csbrk

Conrad Scott
Wed Aug 7 02:51:00 GMT 2002

"Christopher Faylor" <> wrote:
> And even if I got the slop working there would still
> be a call to VirtualAlloc.  It shouldn't matter since it will
> be allocating allocated memory but that means it probably isn't
> really worth it anyway.  So, I've reorganized things one more
> And, no more slop.

Good point: I hadn't quite got as far as thinking too clearly
about what was being optimised.  I bet a call to VirtualAlloc to
commit an already committed page is cheap and so some optimization
might be possible, but without instrumenting a few test programs
who knows what difference it would make.

> In the reorganization our aesthetic sense merged so I moved the
> cygheap_max setting back into init_cheap.

Beauty will out :-)

// Conrad

More information about the Cygwin-patches mailing list