diff options
author | Christopher Faylor <me@cgf.cx> | 2002-08-06 22:05:53 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-08-06 22:05:53 +0000 |
commit | e851d2fe43cebc6028959f9bcb0e457f88e115da (patch) | |
tree | 2e3f147155c8bf047439df24bfa3a6092ec4e596 /winsup/cygwin/cygheap.cc | |
parent | 32438c512a0a2c26f5ba9c6a3a7437ba2b6b24cc (diff) | |
download | cygnal-e851d2fe43cebc6028959f9bcb0e457f88e115da.tar.gz cygnal-e851d2fe43cebc6028959f9bcb0e457f88e115da.tar.bz2 cygnal-e851d2fe43cebc6028959f9bcb0e457f88e115da.zip |
Conrad Scott <conrad.scott@dsl.pipex.com
* cygheap.cc (_csbrk): Allocate some slop initially. Don't erroneously add
sbrk amount to returned value in initial case.
Diffstat (limited to 'winsup/cygwin/cygheap.cc')
-rw-r--r-- | winsup/cygwin/cygheap.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/cygheap.cc b/winsup/cygwin/cygheap.cc index edd77fcf3..976618bf7 100644 --- a/winsup/cygwin/cygheap.cc +++ b/winsup/cygwin/cygheap.cc @@ -177,8 +177,8 @@ _csbrk (int sbs) { init_cheap (); cygheap_max = cygheap; - (void) _csbrk ((int) pagetrunc (4095 + sbs + sizeof (*cygheap))); - prebrk = (char *) (cygheap + 1) + sbs; + (void) _csbrk (sbs + sizeof (*cygheap) + (2 * system_info.dwPageSize)); + prebrk = (char *) (cygheap + 1); } else { |