VirtualBox

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


Ignore:
Timestamp:
Oct 1, 2009 11:47:11 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
53085
Message:

PGM: Made PGM_PAGE_WITH_LOCKS unconditional.

File:
1 edited

Legend:

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

    r23460 r23471  
    10701070                pMap->cRefs++;
    10711071
    1072 # ifdef PGM_PAGE_WITH_LOCKS
    10731072            unsigned cLocks = PGM_PAGE_GET_WRITE_LOCKS(pPage);
    10741073            if (RT_LIKELY(cLocks < PGM_PAGE_MAX_LOCKS - 1))
     
    10811080                    pMap->cRefs++; /* Extra ref to prevent it from going away. */
    10821081            }
    1083 # endif
    10841082
    10851083            *ppv = (void *)((uintptr_t)pTlbe->pv | (GCPhys & PAGE_OFFSET_MASK));
     
    11701168                pMap->cRefs++;
    11711169
    1172 # ifdef PGM_PAGE_WITH_LOCKS
    11731170            unsigned cLocks = PGM_PAGE_GET_READ_LOCKS(pPage);
    11741171            if (RT_LIKELY(cLocks < PGM_PAGE_MAX_LOCKS - 1))
     
    11811178                    pMap->cRefs++; /* Extra ref to prevent it from going away. */
    11821179            }
    1183 # endif
    11841180
    11851181            *ppv = (void *)((uintptr_t)pTlbe->pv | (GCPhys & PAGE_OFFSET_MASK));
     
    12921288
    12931289    pgmLock(pVM);
    1294 # ifdef PGM_PAGE_WITH_LOCKS
    12951290    if (fWriteLock)
    12961291    {
     
    13161311            PGM_PAGE_DEC_READ_LOCKS(pPage);
    13171312    }
    1318 #endif
    13191313
    13201314    if (pMap)
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette