From f51e42acc8424e22f0f79db783259b8704141aa6 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Thu, 5 Jun 2003 02:56:27 +0000 Subject: * shared.cc (shared_info::heap_chunk_size): Be really defensive about making sure that heap_chunk is set. --- winsup/cygwin/shared.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'winsup/cygwin/shared.cc') 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); } -- cgit v1.2.3