Menu

Commit [r392]  Maximize  Restore  History

- Added another function called __reset_max_mem_stats() which will reset the

counters for "maximum amount of memory used" and "maximum number of chunks
allocated" to the current figures for these values.

- Fixed the alloca() declaration in <stdlib.h> so that software which keys
off the fact whether or not the alloca preprocessor symbol is defined
will do the right thing.

- Added an optional call-back function which can be called if alloca()
is about to return NULL, which some software does not consider.
Rather than letting such software drop into an illegal memory access
or worse, that call-back function will be invoked instead, which can
print an error message and eventually call abort().

obarthel 2005-11-28

changed /trunk/library/GNUmakefile.68k
changed /trunk/library/GNUmakefile.os4
changed /trunk/library/changes
changed /trunk/library/include/dos.h
changed /trunk/library/include/stdlib.h
changed /trunk/library/smakefile
changed /trunk/library/stdlib_alloca.c
added /trunk/library/stdlib_alloca_trap.c
changed /trunk/library/stdlib_free.c
added /trunk/library/stdlib_getmemstats.c
changed /trunk/library/stdlib_headers.h
changed /trunk/library/stdlib_malloc.c
added /trunk/library/stdlib_resetmemstats.c
/trunk/library/GNUmakefile.68k Diff Switch to side-by-side view
Loading...
/trunk/library/GNUmakefile.os4 Diff Switch to side-by-side view
Loading...
/trunk/library/changes Diff Switch to side-by-side view
Loading...
/trunk/library/include/dos.h Diff Switch to side-by-side view
Loading...
/trunk/library/include/stdlib.h Diff Switch to side-by-side view
Loading...
/trunk/library/smakefile Diff Switch to side-by-side view
Loading...
/trunk/library/stdlib_alloca.c Diff Switch to side-by-side view
Loading...
/trunk/library/stdlib_alloca_trap.c Diff Switch to side-by-side view
Loading...
/trunk/library/stdlib_free.c Diff Switch to side-by-side view
Loading...
/trunk/library/stdlib_getmemstats.c Diff Switch to side-by-side view
Loading...
/trunk/library/stdlib_headers.h Diff Switch to side-by-side view
Loading...
/trunk/library/stdlib_malloc.c Diff Switch to side-by-side view
Loading...
/trunk/library/stdlib_resetmemstats.c Diff Switch to side-by-side view
Loading...
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.