* shared.cc (shared_info::heap_chunk_size): Be really defensive about making

sure that heap_chunk is set.
This commit is contained in:
Christopher Faylor 2003-06-05 02:56:27 +00:00
parent 496e018f2f
commit f51e42acc8
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
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

View File

@ -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);
}