Changeset 81e52f2a in mainline for test/mm/slab1/test.c


Ignore:
Timestamp:
2006-02-04T00:53:19Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c5613b7
Parents:
c352c2e
Message:

Fixed non-initialized cpu-cache.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/mm/slab1/test.c

    rc352c2e r81e52f2a  
    4646        printf("Creating cache, object size: %d.\n", size);
    4747        cache = slab_cache_create("test_cache", size, 0, NULL, NULL,
    48                                   SLAB_CACHE_NOMAGAZINE);
    49         slab_print_list();
    50        
     48                                  SLAB_CACHE_NOMAGAZINE);       
    5149        printf("Allocating %d items...", count);
    5250        for (i=0; i < count; i++) {
     
    6866        printf("done.\n");
    6967
    70         slab_print_list();
    7168        printf("Freeing %d items...", count/2);
    7269        for (i=count-1; i >= count/2; i--) {
     
    129126        }
    130127        printf("Thread #%d finished\n", THREAD->tid);
    131         slab_print_list();
    132128        semaphore_up(&thr_sem);
    133129}
Note: See TracChangeset for help on using the changeset viewer.