changeset 1783:5b91c0bea75a

* src/dlmalloc.cxx (resize_alloc): No longer invoke cyg_memalloc_alloc_fail() on failure to resize. It is not an out of memory condition, it just means the current memory allocation could not be expanded. realloc() will try allocating a completely new block of memory and only if that fails do we have an out of memory condition.
author asl
date Mon, 04 Oct 2004 12:02:57 +0000
parents 59df0967a02b
children 71a7aa469387
files packages/services/memalloc/common/current/ChangeLog packages/services/memalloc/common/current/src/dlmalloc.cxx
diffstat 2 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/packages/services/memalloc/common/current/ChangeLog
+++ b/packages/services/memalloc/common/current/ChangeLog
@@ -1,3 +1,12 @@
+2004-10-04  Oyvind Harboe  <oyvind.harboe@zylin.com>
+
+	* src/dlmalloc.cxx (resize_alloc): No longer invoke
+	 cyg_memalloc_alloc_fail() on failure to resize. It is not an out
+	 of memory condition, it just means the current memory allocation
+	 could not be expanded. realloc() will try allocating a completely
+	 new block of memory and only if that fails do we have an out of
+	 memory condition.
+
 2004-10-01  Oyvind Harboe  <oyvind.harboe@zylin.com>
 
 	* heapgen.tcl: place the CYGBLD_ATTRIB_INIT_PRI such that it
--- a/packages/services/memalloc/common/current/src/dlmalloc.cxx
+++ b/packages/services/memalloc/common/current/src/dlmalloc.cxx
@@ -1558,7 +1558,6 @@ Cyg_Mempool_dlmalloc_Implementation::res
 
     // couldn't resize the allocation any direction, so return failure
     MALLOC_UNLOCK;
-    CYG_MEMALLOC_FAIL(bytes);
     return NULL;
   }