aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/shared.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2003-06-05 02:56:27 +0000
committerChristopher Faylor <me@cgf.cx>2003-06-05 02:56:27 +0000
commitf51e42acc8424e22f0f79db783259b8704141aa6 (patch)
tree28614de4a700c8735fb25e85d169d999df051b71 /winsup/cygwin/shared.cc
parent496e018f2f4174a1753d2b825b057dd537488628 (diff)
downloadnewlib-f51e42acc8424e22f0f79db783259b8704141aa6.zip
newlib-f51e42acc8424e22f0f79db783259b8704141aa6.tar.gz
newlib-f51e42acc8424e22f0f79db783259b8704141aa6.tar.bz2
* shared.cc (shared_info::heap_chunk_size): Be really defensive about making
sure that heap_chunk is set.
Diffstat (limited to 'winsup/cygwin/shared.cc')
-rw-r--r--winsup/cygwin/shared.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/cygwin/shared.cc b/winsup/cygwin/shared.cc
index c8c764c..30c4582 100644
--- a/winsup/cygwin/shared.cc
+++ b/winsup/cygwin/shared.cc
@@ -254,6 +254,8 @@ shared_info::heap_chunk_size ()
heap_chunk = 4 * 1024 * 1024;
else
heap_chunk <<= 20;
+ if (!heap_chunk)
+ heap_chunk = 384 * 1024 * 1024;
debug_printf ("fixed heap size is %u", heap_chunk);
}