VirtualBox

Changeset 18811 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Apr 7, 2009 12:21:17 PM (16 years ago)
Author:
vboxsync
Message:

PGMPhys.cpp,MMHyper.cpp: The MMR3UkHeap bits seems to be working and we're not running out of heap as the guest uses more and more of the memory. Removed the old disabled code.

Location:
trunk/src/VBox/VMM
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/MMHyper.cpp

    r18800 r18811  
    7878    int rc = CFGMR3QueryU32(CFGMR3GetChild(CFGMR3GetRoot(pVM), "MM"), "cbHyperHeap", &cbHyperHeap);
    7979    if (rc == VERR_CFGM_NO_PARENT || rc == VERR_CFGM_VALUE_NOT_FOUND)
    80     {
    8180        cbHyperHeap = VMMIsHwVirtExtForced(pVM)
    8281                    ? 640*_1K
    8382                    : 1280*_1K;
    84 
    85         /* Adjust for dynamic stuff like RAM mapping chunks. Try playing kind
    86            of safe with existing configs here (HMA size must not change)... */
    87         uint64_t cbRam;
    88         CFGMR3QueryU64Def(CFGMR3GetRoot(pVM), "RamSize", &cbRam, 0);
    89 #if 0 /* MMUkHeap takes care of this now...*/
    90         if (cbRam > _2G)
    91         {
    92             cbRam = RT_MIN(cbRam, _1T);
    93             cbHyperHeap += (cbRam - _1G) / _1M * 128; /* 128 is a quick guess */
    94             cbHyperHeap = RT_ALIGN_32(cbHyperHeap, _64K);
    95         }
    96 #endif
    97     }
    9883    else
    9984        AssertLogRelRCReturn(rc, rc);
  • trunk/src/VBox/VMM/PGMPhys.cpp

    r18792 r18811  
    27852785     * Allocate a new tracking structure first.
    27862786     */
    2787 #if 1 /* disable on regression */
    27882787# ifdef VBOX_WITH_2X_4GB_ADDR_SPACE
    27892788    PPGMCHUNKR3MAP pChunk = (PPGMCHUNKR3MAP)MMR3HeapAlloc(pVM, MM_TAG_PGM_CHUNK_MAPPING, sizeof(*pChunk));
     
    27922791# endif
    27932792    AssertReturn(pChunk, VERR_NO_MEMORY);
    2794 #else
    2795     PPGMCHUNKR3MAP pChunk;
    2796     rc = MMHyperAlloc(pVM, sizeof(*pChunk), 0, MM_TAG_PGM_CHUNK_MAPPING, (void **)&pChunk);
    2797     AssertRCReturn(rc, rc);
    2798 #endif
    27992793    pChunk->Core.Key = idChunk;
    28002794    pChunk->AgeCore.Key = pVM->pgm.s.ChunkR3Map.iNow;
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette