VirtualBox

Changeset 1468 in vbox


Ignore:
Timestamp:
Mar 14, 2007 12:26:51 PM (18 years ago)
Author:
vboxsync
Message:

Error details for when we can't get contiguous or low memory.

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

Legend:

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

    r878 r1468  
    314314    MMR3HeapFree(pSub);
    315315    STAM_COUNTER_INC(&pPool->cErrors);
    316     AssertMsgFailed(("Failed to expand pool%s. rc=%d poolsize=%d\n",
    317                      pPool->fLow ? " (<4GB)" : "", pPool->cPages));
     316    if (pPool->fLow)
     317        VMSetError(pPool->pVM, rc, RT_SRC_POS,
     318                   N_("Failed to expand page pool for memory below 4GB. current size: %d pages\n"),
     319                   pPool->cPages);
     320    AssertMsgFailed(("Failed to expand pool%s. rc=%Vrc poolsize=%d\n",
     321                     pPool->fLow ? " (<4GB)" : "", rc, pPool->cPages));
    318322    return NULL;
    319323}
  • trunk/src/VBox/VMM/VM.cpp

    r1417 r1468  
    271271        else
    272272        {
    273             AssertMsgFailed(("Failed to allocate %d bytes of contiguous memory\n", RT_ALIGN(sizeof(*pVM), PAGE_SIZE)));
    274273            rc = VERR_NO_MEMORY;
     274            vmR3CallVMAtError(pfnVMAtError, pvUserVM, rc, RT_SRC_POS,
     275                              N_("Failed to allocate %d bytes of contiguous memory for the VM structure!\n"),
     276                              RT_ALIGN(sizeof(*pVM), PAGE_SIZE));
     277            AssertMsgFailed(("Failed to allocate %d bytes of contiguous memory for the VM structure!\n", RT_ALIGN(sizeof(*pVM), PAGE_SIZE)));
    275278        }
    276279
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