VirtualBox

Changeset 62147 in vbox for trunk


Ignore:
Timestamp:
Jul 8, 2016 4:53:24 PM (9 years ago)
Author:
vboxsync
Message:

PDMCritSect: NOP critsects are less likely to appear than real ones (e.g. the PGM one), so drop the compiler a little hint.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/Makefile.kmk

    r62006 r62147  
    336336if "$(USERNAME)" == "bird" && "$(KBUILD_TARGET)" == "win"
    337337 VBoxVMM_VMMAll/IEMAll.cpp_CXXFLAGS = /FAcs /Fa$(subst /,\\,$(outbase).cod)
     338 VBoxVMM_VMMAll/PDMAllCritSect.cpp_CXXFLAGS = /FAcs /Fa$(subst /,\\,$(outbase).cod)
    338339endif
    339340
  • trunk/src/VBox/VMM/VMMAll/PDMAllCritSect.cpp

    r62146 r62147  
    240240     */
    241241    /* NOP ... */
    242     if (pCritSect->s.Core.fFlags & RTCRITSECT_FLAGS_NOP)
     242    if (!(pCritSect->s.Core.fFlags & RTCRITSECT_FLAGS_NOP))
     243    { /* We're more likely to end up here with real critsects than a NOP one. */ }
     244    else
    243245        return VINF_SUCCESS;
    244246
     
    434436     */
    435437    /* NOP ... */
    436     if (pCritSect->s.Core.fFlags & RTCRITSECT_FLAGS_NOP)
     438    if (!(pCritSect->s.Core.fFlags & RTCRITSECT_FLAGS_NOP))
     439    { /* We're more likely to end up here with real critsects than a NOP one. */ }
     440    else
    437441        return VINF_SUCCESS;
    438442
     
    560564
    561565    /* Check for NOP sections before asserting ownership. */
    562     if (pCritSect->s.Core.fFlags & RTCRITSECT_FLAGS_NOP)
     566    if (!(pCritSect->s.Core.fFlags & RTCRITSECT_FLAGS_NOP))
     567    { /* We're more likely to end up here with real critsects than a NOP one. */ }
     568    else
    563569        return VINF_SUCCESS;
    564570
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