VirtualBox

Changeset 17431 in vbox


Ignore:
Timestamp:
Mar 6, 2009 2:02:03 AM (16 years ago)
Author:
vboxsync
Message:

GMMR0: Two fixes to the code path freeing pages.

File:
1 edited

Legend:

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

    r17421 r17431  
    304304/** @def GMM_PAGE_IS_PRIVATE
    305305 *
    306  * @returns true if free, false if not.
     306 * @returns true if private, false if not.
    307307 * @param   pPage       The GMM page.
    308308 */
     
    313313#endif
    314314
    315 /** @def GMM_PAGE_IS_FREE
    316  *
    317  * @returns true if free, false if not.
     315/** @def GMM_PAGE_IS_SHARED
     316 *
     317 * @returns true if shared, false if not.
    318318 * @param   pPage       The GMM page.
    319319 */
     
    15211521
    15221522/**
    1523  * Allocates one page.
     1523 * Allocates one private page.
    15241524 *
    15251525 * Worker for gmmR0AllocatePages.
     
    15371537    Assert(pChunk->cFree);
    15381538    pChunk->cFree--;
     1539    pChunk->cPrivate++;
    15391540
    15401541    /* unlink the first free page. */
     
    22602261    switch (enmAccount)
    22612262    {
    2262         case GMMACCOUNT_BASE:   pGVM->gmm.s.Allocated.cBasePages   -= iPage;
    2263         case GMMACCOUNT_SHADOW: pGVM->gmm.s.Allocated.cShadowPages -= iPage;
    2264         case GMMACCOUNT_FIXED:  pGVM->gmm.s.Allocated.cFixedPages  -= iPage;
     2263        case GMMACCOUNT_BASE:   pGVM->gmm.s.Allocated.cBasePages   -= iPage; break;
     2264        case GMMACCOUNT_SHADOW: pGVM->gmm.s.Allocated.cShadowPages -= iPage; break;
     2265        case GMMACCOUNT_FIXED:  pGVM->gmm.s.Allocated.cFixedPages  -= iPage; break;
    22652266        default:
    22662267            AssertMsgFailedReturn(("enmAccount=%d\n", enmAccount), VERR_INTERNAL_ERROR);
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