This is the mail archive of the
mailing list for the Cygwin project.
Re: init_cheap and _csbrk
"Christopher Faylor" <firstname.lastname@example.org> 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 :-)