CYG_MEMALLOC_FAIL() fix
Andrew Lunn
andrew@lunn.ch
Mon Sep 27 17:53:00 GMT 2004
> Index: current/ChangeLog
> ===================================================================
> RCS file: /cvs/ecos/ecos/packages/services/memalloc/common/current/ChangeLog,v
> retrieving revision 1.31
> diff -w -r1.31 ChangeLog
> 2a3,7
> > * No longer invoke cyg_memalloc_alloc_fail() on failure to
> > resize. It is not an out of memory condition.
Could you explain this better. On first reading of the comment if
understood it wrongly. Something like
* 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 completelty new block of memory and only if that fails do we
have an out of memory condition.
Also your ChangeLog entry looks invalid. It does not appear to start
with the usual header of date, name, email address. Please also use
unified diffs, they are much easier for a human to read.
Thanks
Andrew
More information about the Ecos-patches
mailing list