VirtualBox

Changeset 23471 in vbox for trunk/src/VBox/VMM/PGMPhys.cpp


Ignore:
Timestamp:
Oct 1, 2009 11:47:11 AM (15 years ago)
Author:
vboxsync
Message:

PGM: Made PGM_PAGE_WITH_LOCKS unconditional.

File:
1 edited

Legend:

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

    r23460 r23471  
    454454                pMap->cRefs++;
    455455
    456 # ifdef PGM_PAGE_WITH_LOCKS
    457456            unsigned cLocks = PGM_PAGE_GET_WRITE_LOCKS(pPage);
    458457            if (RT_LIKELY(cLocks < PGM_PAGE_MAX_LOCKS - 1))
     
    465464                    pMap->cRefs++; /* Extra ref to prevent it from going away. */
    466465            }
    467 # endif
    468466
    469467            *ppv = (void *)((uintptr_t)pTlbe->pv | (GCPhys & PAGE_OFFSET_MASK));
     
    530528                pMap->cRefs++;
    531529
    532 # ifdef PGM_PAGE_WITH_LOCKS
    533530            unsigned cLocks = PGM_PAGE_GET_READ_LOCKS(pPage);
    534531            if (RT_LIKELY(cLocks < PGM_PAGE_MAX_LOCKS - 1))
     
    541538                    pMap->cRefs++; /* Extra ref to prevent it from going away. */
    542539            }
    543 # endif
    544540
    545541            *ppv = (void *)((uintptr_t)pTlbe->pv | (GCPhys & PAGE_OFFSET_MASK));
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