VirtualBox

Changeset 20767 in vbox


Ignore:
Timestamp:
Jun 22, 2009 12:02:31 PM (15 years ago)
Author:
vboxsync
Message:

Locking paranoia

Location:
trunk/src/VBox/VMM/VMMAll
Files:
2 edited

Legend:

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

    r20762 r20767  
    25462546{
    25472547    STAM_PROFILE_START(&pVCpu->pgm.s.CTX_MID_Z(Stat,SyncCR3), a);
     2548    pgmLock(pVM);
    25482549    unsigned cErrors = PGM_BTH_PFN(AssertCR3, pVCpu)(pVCpu, cr3, cr4, 0, ~(RTGCPTR)0);
     2550    pgmUnlock(pVM);
    25492551    STAM_PROFILE_STOP(&pVCpu->pgm.s.CTX_MID_Z(Stat,SyncCR3), a);
    25502552    return cErrors;
  • trunk/src/VBox/VMM/VMMAll/PGMAllHandler.cpp

    r20765 r20767  
    16191619    State.pVM = pVM;
    16201620
     1621    Assert(PGMIsLockOwner(pVM));
     1622
    16211623    /*
    16221624     * Check the RAM flags against the handlers.
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