Ignore:
Timestamp:
Jan 24, 2000, 7:19:01 PM (26 years ago)
Author:
bird
Message:

Heapchanges: Heap is splitted into a swappable and a resident. The heaps
are dynamically growable.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/win32k/dev32/d32init.c

    r2501 r2511  
    1 /* $Id: d32init.c,v 1.5 2000-01-22 18:20:57 bird Exp $
     1/* $Id: d32init.c,v 1.6 2000-01-24 18:18:59 bird Exp $
    22 *
    33 * d32init.c - 32-bits init routines.
     
    129129                    {
    130130                        if (strnicmp(pszTmp, "heapm", 5) == 0)
    131                             options.cbHeapMax = ul;
     131                            options.cbSwpHeapMax = ul;
    132132                        else
    133                             options.cbHeap = ul;
     133                            options.cbSwpHeapInit = ul;
    134134                    }
    135135                }
     
    189189                    {
    190190                        if (strnicmp(pszTmp, "resheapm", 8) == 0)
    191                             options.cbHeapMaxResident = ul;
     191                            options.cbResHeapMax = ul;
    192192                        else
    193                             options.cbHeapResident = ul;
     193                            options.cbResHeapInit = ul;
    194194                    }
    195195                }
     
    243243
    244244    /* heap min/max corrections */
    245     if (options.cbHeap > options.cbHeapMax)
    246         options.cbHeapMax = options.cbHeap;
    247     if (options.cbHeapResident > options.cbHeapMaxResident)
    248         options.cbHeapMaxResident = options.cbHeapResident;
     245    if (options.cbSwpHeapInit > options.cbSwpHeapMax)
     246        options.cbSwpHeapMax = options.cbSwpHeapInit;
     247    if (options.cbResHeapInit > options.cbResHeapMax)
     248        options.cbResHeapMax = options.cbResHeapInit;
    249249
    250250    /* Transfer version and build number from 16-bit probkrnl.c */
     
    277277     */
    278278    /* heap */
    279     if (heapInit(options.cbHeap) != NO_ERROR)
     279    if (heapInit(options.cbResHeapInit, options.cbResHeapMax,
     280                 options.cbSwpHeapInit, options.cbSwpHeapMax) != NO_ERROR)
    280281        return STATUS_DONE | STERR | ERROR_I24_QUIET_INIT_FAIL;
    281282
Note: See TracChangeset for help on using the changeset viewer.