VirtualBox

Changeset 28052 in vbox


Ignore:
Timestamp:
Apr 7, 2010 2:28:19 PM (15 years ago)
Author:
vboxsync
Message:

Flush first, then free

File:
1 edited

Legend:

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

    r28044 r28052  
    797797    if (fInflate)
    798798    {
     799        /* Flush the PGM pool cache as we might have stale references to pages that we just freed. */
     800        pgmR3PoolClearAllRendezvous(pVM, pVCpu, NULL);
     801
    799802        /* Replace pages with ZERO pages. */
    800803        rc = GMMR3FreePagesPrepare(pVM, &pReq, PGMPHYS_FREE_PAGE_BATCH_SIZE, GMMACCOUNT_BASE);
     
    844847        }
    845848        GMMR3FreePagesCleanup(pReq);
    846 
    847         /* Flush the PGM pool cache as we might have stale references to pages that we just freed. */
    848         pgmR3PoolClearAllRendezvous(pVM, pVCpu, NULL);
    849849    }
    850850    else
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