VirtualBox

Changeset 17149 in vbox


Ignore:
Timestamp:
Feb 26, 2009 10:27:45 AM (16 years ago)
Author:
vboxsync
Message:

Put cached pool pages at the front of the in-use list to prevent them from being flushed when we're about to reuse them

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/PGMAllPool.cpp

    r17148 r17149  
    15811581                if ((PGMPOOLKIND)pPage->enmKind == enmKind)
    15821582                {
     1583                    /* Put it at the start of the use list to make sure pgmPoolTrackAddUser
     1584                     * doesn't flush it in case there are no more free use records.
     1585                     */
     1586                    pgmPoolCacheUsed(pPool, pPage);
     1587
    15831588                    int rc = pgmPoolTrackAddUser(pPool, pPage, iUser, iUserTable);
    15841589                    if (RT_SUCCESS(rc))
    15851590                    {
     1591                        Assert((PGMPOOLKIND)pPage->enmKind == enmKind);
    15861592                        *ppPage = pPage;
    15871593                        STAM_COUNTER_INC(&pPool->StatCacheHits);
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