summaryrefslogtreecommitdiffstats
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
parent496e018f2f4174a1753d2b825b057dd537488628 (diff)
downloadcygnal-f51e42acc8424e22f0f79db783259b8704141aa6.tar.gz
cygnal-f51e42acc8424e22f0f79db783259b8704141aa6.tar.bz2
cygnal-f51e42acc8424e22f0f79db783259b8704141aa6.zip
* shared.cc (shared_info::heap_chunk_size): Be really defensive about making
sure that heap_chunk is set.
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/shared.cc2
2 files changed, 7 insertions, 0 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 68a1e84de..d5007e2c1 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,10 @@
2003-06-04 Christopher Faylor <cgf@redhat.com>
+ * shared.cc (shared_info::heap_chunk_size): Be really defensive about
+ making sure that heap_chunk is set.
+
+2003-06-04 Christopher Faylor <cgf@redhat.com>
+
* path.cc (conv_path_list): Use correct value when calculating length
to avoid a potential SEGV.
diff --git a/winsup/cygwin/shared.cc b/winsup/cygwin/shared.cc
index c8c764c74..30c4582be 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);
}