1
0
mirror of https://github.com/adtools/clib2.git synced 2025-12-08 14:59:05 +00:00
Files
amiga-clib2/library
Olaf Barthel 025b183b5a Unused slabs are getting purged after adding a new slab
If a new slab is allocated, or an empty slab is reused, the list of empty slabs is now purged, if possible. Empty slabs which cannot be immediately purged "decay" and will be collected the next time a new slab is allocated or an empty slab is reused.

If a chunk is allocated and the slab which the chunk came from is fully utilized, the slab is moved to the end of its list. This should avoid searching this slab for free space before all other slabs of the same chunk size have been tested first. Slabs with free space are always placed closer to the head of the list.
2016-11-17 13:14:13 +01:00
..
2015-04-24 14:00:23 +00:00
2015-04-24 14:00:23 +00:00
2015-04-24 14:00:23 +00:00
2016-11-17 11:45:59 +01:00
2016-11-17 11:45:59 +01:00
2016-11-17 11:45:59 +01:00
2016-11-17 11:45:59 +01:00
2016-11-17 11:45:59 +01:00
2016-11-17 11:45:59 +01:00