VirtualBox

Changeset 22337 in vbox for trunk/src/VBox/VMM/VMMAll


Ignore:
Timestamp:
Aug 19, 2009 9:41:13 AM (15 years ago)
Author:
vboxsync
Message:

Reset modification counter for cache pgm pool page hits.

File:
1 edited

Legend:

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

    r22336 r22337  
    14921492                        Assert((PGMPOOLKIND)pPage->enmKind == enmKind);
    14931493                        *ppPage = pPage;
     1494                        if (pPage->cModifications)
     1495                            pPage->cModifications = 1; /* reset counter (can't use 0, or else it will be reinserted in the modified list) */
    14941496                        STAM_COUNTER_INC(&pPool->StatCacheHits);
    14951497                        return VINF_PGM_CACHED_PAGE;
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