Menu

Commit [r558]  Maximize  Restore  History

c.lib 1.213 (4.12.2016)

- Added the __decay_unused_slabs() function which brings all currently
empty slabs which are still protected from reuse closer to getting
reused or released.

- The slab-test program now exercises the memory allocation functions
to a greater degree. Memory is allocated in random chunk sizes,
the allocations are resized (to other random chunk sizes),
33% of all allocations are randomly freed, empty slabs readied for
reuse then discarded. The output in JSON format now shows a bit
more information as to what is being done.

- Rewrote __get_slab_stats() to use setjmp() and longjmp() in the
print() callback invocation.

- __get_slab_stats() now reports how many times a slab was reused
after having stuck around in the "empty slab" list.

- Changing the slab size through an environment variable is now
a feature of the debug build.

- Small changes to allow the library to be built with SAS/C again.
This includes adding code to disable/re-enable profiling,
fixing "stdlib_profile.h" and updating the smakefiles.

- Still not sure what it does, but _CXV45 now sits along with _CX25
and _CX35 in "sas_cxv.asm". "sas_cxv54.asm" is not needed any
more.

- Found the last use of MEMF_PRIVATE which should have been compiled
only for the OS4 version.

obarthel 2016-12-04

1 2 > >> (Page 1 of 2)
changed /trunk/library/GNUmakefile.68k
changed /trunk/library/GNUmakefile.os4
changed /trunk/library/amiga.lib_rev.h
changed /trunk/library/amiga.lib_rev.rev
changed /trunk/library/amiga_dotimer.c
changed /trunk/library/amiga_rexxvars.c
changed /trunk/library/c.lib_rev.h
changed /trunk/library/c.lib_rev.rev
changed /trunk/library/changes
changed /trunk/library/debug.lib_rev.h
changed /trunk/library/debug.lib_rev.rev
changed /trunk/library/include/stdlib.h
changed /trunk/library/libc.gmk
changed /trunk/library/m.lib_rev.h
changed /trunk/library/m.lib_rev.rev
changed /trunk/library/m881.lib_rev.h
changed /trunk/library/m881.lib_rev.rev
changed /trunk/library/net.lib_rev.h
changed /trunk/library/net.lib_rev.rev
changed /trunk/library/sas_cxv.asm
added /trunk/library/sas_cxv52.asm
changed /trunk/library/sas_cxv54.asm
changed /trunk/library/smakefile
added /trunk/library/stdlib_decay_unused_slabs.c
changed /trunk/library/stdlib_free.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/amiga.lib_rev.h Diff Switch to side-by-side view
Loading...
/trunk/library/amiga.lib_rev.rev Diff Switch to side-by-side view
Loading...
/trunk/library/amiga_dotimer.c Diff Switch to side-by-side view
Loading...
/trunk/library/amiga_rexxvars.c Diff Switch to side-by-side view
Loading...
/trunk/library/c.lib_rev.h Diff Switch to side-by-side view
Loading...
/trunk/library/c.lib_rev.rev Diff Switch to side-by-side view
Loading...
/trunk/library/changes Diff Switch to side-by-side view
Loading...
/trunk/library/debug.lib_rev.h Diff Switch to side-by-side view
Loading...
/trunk/library/debug.lib_rev.rev Diff Switch to side-by-side view
Loading...
/trunk/library/include/stdlib.h Diff Switch to side-by-side view
Loading...
/trunk/library/libc.gmk Diff Switch to side-by-side view
Loading...
/trunk/library/m.lib_rev.h Diff Switch to side-by-side view
Loading...
/trunk/library/m.lib_rev.rev Diff Switch to side-by-side view
Loading...
/trunk/library/m881.lib_rev.h Diff Switch to side-by-side view
Loading...
/trunk/library/m881.lib_rev.rev Diff Switch to side-by-side view
Loading...
/trunk/library/net.lib_rev.h Diff Switch to side-by-side view
Loading...
/trunk/library/net.lib_rev.rev Diff Switch to side-by-side view
Loading...
/trunk/library/sas_cxv.asm Diff Switch to side-by-side view
Loading...
/trunk/library/sas_cxv52.asm Diff Switch to side-by-side view
Loading...
/trunk/library/sas_cxv54.asm Diff Switch to side-by-side view
Loading...
/trunk/library/smakefile Diff Switch to side-by-side view
Loading...
/trunk/library/stdlib_decay_unused_slabs.c Diff Switch to side-by-side view
Loading...
/trunk/library/stdlib_free.c Diff Switch to side-by-side view
Loading...
1 2 > >> (Page 1 of 2)
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.