VirtualBox

Changeset 45310 in vbox


Ignore:
Timestamp:
Apr 3, 2013 2:54:09 PM (11 years ago)
Author:
vboxsync
Message:

PDMCritSectRw: Fixed shared leave bugs.

File:
1 edited

Legend:

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

    r45306 r45310  
    548548
    549549            if (   c > 0
    550                 || (u64State & RTCSRW_CNT_RD_MASK) == 0)
     550                || (u64State & RTCSRW_CNT_WR_MASK) == 0)
    551551            {
    552552                /* Don't change the direction. */
     
    573573                PVMCPU      pVCpu = VMMGetCpu(pVM);                 AssertPtr(pVCpu);
    574574                uint32_t    i     = pVCpu->pdm.s.cQueuedCritSectRwShrdLeaves++;
    575                 LogFlow(("PDMCritSectRwLeaveShared: [%d]=%p => R3\n", i, pThis));
     575                LogFlow(("PDMCritSectRwLeaveShared: [%d]=%p => R3 c=%d (%#llx)\n", i, pThis, c, u64State));
    576576                AssertFatal(i < RT_ELEMENTS(pVCpu->pdm.s.apQueuedCritSectRwShrdLeaves));
    577577                pVCpu->pdm.s.apQueuedCritSectRwShrdLeaves[i] = MMHyperCCToR3(pVM, pThis);
     
    580580                STAM_REL_COUNTER_INC(&pVM->pdm.s.StatQueuedCritSectLeaves);
    581581                STAM_REL_COUNTER_INC(&pThis->s.StatContentionRZLeaveShared);
     582                break;
    582583#endif
    583584            }
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