Changeset e3c762cd in mainline for generic/src/mm/slab.c
- Timestamp:
- 2006-05-05T11:59:19Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- de07bcf
- Parents:
- 22cf454d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/src/mm/slab.c
r22cf454d re3c762cd 176 176 slab = data + fsize - sizeof(*slab); 177 177 } 178 178 179 179 /* Fill in slab structures */ 180 180 for (i=0; i < (1 << cache->order); i++) … … 278 278 /* Allow recursion and reclaiming 279 279 * - this should work, as the slab control structures 280 * are small and do not need to alloc te with anything281 * other t en frame_alloc when they are allocating,280 * are small and do not need to allocate with anything 281 * other than frame_alloc when they are allocating, 282 282 * that's why we should get recursion at most 1-level deep 283 283 */ … … 880 880 881 881 ASSERT(_slab_initialized); 882 ASSERT( 882 ASSERT(size && size <= (1 << SLAB_MAX_MALLOC_W)); 883 883 884 884 if (size < (1 << SLAB_MIN_MALLOC_W)) … … 890 890 } 891 891 892 893 892 void free(void *obj) 894 893 {
Note:
See TracChangeset
for help on using the changeset viewer.