Ignore:
Timestamp:
Jan 23, 2000, 4:20:53 AM (26 years ago)
Author:
bird
Message:

Initial resident heap coding completed.
The AVL heap is seems to be much faster; it uses 40% of the time that the
traditional linked-list based heap is using when executing the heaptest.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/win32k/misc/rmalloc.c

    r2501 r2503  
    1 /* $Id: rmalloc.c,v 1.1 2000-01-22 18:21:03 bird Exp $
     1/* $Id: rmalloc.c,v 1.2 2000-01-23 03:20:53 bird Exp $
    22 *
    33 * Resident Heap.
     
    1818#ifdef DEBUG
    1919    #define DEBUG_ALLOC
    20     #define ALLWAYS_HEAPCHECK
     20    #undef ALLWAYS_HEAPCHECK
    2121#endif
    2222
     
    553553                pmbNew->cbSize = pmb->cbSize - cbNew - CB_HDR;
    554554                pmbNew->pNext = NULL;
     555                pha->cbUsed -= pmb->cbSize - cbNew;
    555556                pmb->cbSize = cbNew;
    556557                resInsertFree(pha, pmbNew);
Note: See TracChangeset for help on using the changeset viewer.