Changeset 81e52f2a in mainline for test/mm/slab1/test.c
- Timestamp:
- 2006-02-04T00:53:19Z (19 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c5613b7
- Parents:
- c352c2e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/mm/slab1/test.c
rc352c2e r81e52f2a 46 46 printf("Creating cache, object size: %d.\n", size); 47 47 cache = slab_cache_create("test_cache", size, 0, NULL, NULL, 48 SLAB_CACHE_NOMAGAZINE); 49 slab_print_list(); 50 48 SLAB_CACHE_NOMAGAZINE); 51 49 printf("Allocating %d items...", count); 52 50 for (i=0; i < count; i++) { … … 68 66 printf("done.\n"); 69 67 70 slab_print_list();71 68 printf("Freeing %d items...", count/2); 72 69 for (i=count-1; i >= count/2; i--) { … … 129 126 } 130 127 printf("Thread #%d finished\n", THREAD->tid); 131 slab_print_list();132 128 semaphore_up(&thr_sem); 133 129 }
Note:
See TracChangeset
for help on using the changeset viewer.