VirtualBox

Changeset 39745 in vbox


Ignore:
Timestamp:
Jan 10, 2012 6:23:43 PM (13 years ago)
Author:
vboxsync
Message:

Check some more out of memory statuses.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/GMMR0.cpp

    r39515 r39745  
    25052505
    25062506                /* If the host is out of memory, take whatever we can get. */
    2507                 if (   rc == VERR_NO_MEMORY
     2507                if (   (rc == VERR_NO_MEMORY || rc == VERR_NO_PHYS_MEMORY)
    25082508                    && pGMM->PrivateX.cFreePages + pGMM->Shared.cFreePages >= cPages - iPage)
    25092509                {
  • trunk/src/VBox/VMM/VMMR3/PGMPhys.cpp

    r39427 r39745  
    43444344        }
    43454345
    4346         if (    rc != VERR_NO_MEMORY
    4347             &&  rc != VERR_LOCK_FAILED)
     4346        if (   rc != VERR_NO_MEMORY
     4347            && rc != VERR_NO_PHYS_MEMORY
     4348            && rc != VERR_LOCK_FAILED)
    43484349        {
    43494350            for (uint32_t i = 0; i < RT_ELEMENTS(pVM->pgm.s.aHandyPages); i++)
     
    43734374        VM_FF_SET(pVM, VM_FF_PGM_NO_MEMORY);
    43744375        if (    rc == VERR_NO_MEMORY
     4376            ||  rc == VERR_NO_PHYS_MEMORY
    43754377            ||  rc == VERR_LOCK_FAILED)
    43764378            rc = VINF_EM_NO_MEMORY;
  • trunk/src/VBox/VMM/VMMRZ/PGMRZDynMap.cpp

    r39402 r39745  
    10621062        pSeg->hMemObj = NIL_RTR0MEMOBJ;
    10631063    }
     1064    else if (rc == VERR_NO_PAGE_MEMORY || rc == VERR_NO_PHYS_MEMORY)
     1065        rc = VERR_NO_MEMORY;
    10641066    RTMemFree(pSeg);
    10651067
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