init_cheap and _csbrk

Christopher Faylor cgf@redhat.com
Tue Aug 6 18:23:00 GMT 2002


On Tue, Aug 06, 2002 at 11:35:56PM +0100, Conrad Scott wrote:
>I wasn't thinking of efficiency while I was looking at this.  I
>was actually trying to understand an apparent memory leak on fork.
>(I found that BTW: it's the "well-known" one in the per_thread
>mechanism.  So I've stopped worrying about it.)
>
>But: the slop will never get used AFAICT (so it's not really
>slop).

You're right.  And even if I got the slop working there would still
be a call to VirtualAlloc.  It shouldn't matter since it will just
be allocating allocated memory but that means it probably isn't
really worth it anyway.  So, I've reorganized things one more time.
And, no more slop.

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

cgf



More information about the Cygwin-patches mailing list