VirtualBox

Changeset 31366 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Aug 4, 2010 5:17:35 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
64419
Message:

Restored old mutex grab code

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/GMMR0.cpp

    r31350 r31366  
    40974097#endif
    40984098
     4099#ifdef DEBUG_sandervl
    40994100/**
    41004101 * Setup for a GMMR0CheckSharedModules call (to allow log flush jumps back to ring 3)
     
    41414142    return VINF_SUCCESS;
    41424143}
     4144#endif
    41434145
    41444146/**
     
    41624164        return rc;
    41634165
     4166# ifndef DEBUG_sandervl
     4167    /*
     4168     * Take the sempahore and do some more validations.
     4169     */
     4170    int rc = RTSemFastMutexRequest(pGMM->Mtx);
     4171    AssertRC(rc);
     4172# endif
    41644173    if (GMM_CHECK_SANITY_UPON_ENTERING(pGMM))
    41654174    {
     
    41824191        rc = VERR_INTERNAL_ERROR_5;
    41834192
     4193# ifndef DEBUG_sandervl
     4194        RTSemFastMutexRelease(pGMM->Mtx);
     4195# endif
    41844196    return rc;
    41854197#else
  • trunk/src/VBox/VMM/VMMR0/VMMR0.cpp

    r31361 r31366  
    970970
    971971            /* Make sure that log flushes can jump back to ring-3; annoying to get an incomplete log (this is risky though as the code doesn't take this into account). */
     972# ifdef DEBUG_sandervl
    972973            int rc = GMMR0CheckSharedModulesStart(pVM);
    973974            if (rc == VINF_SUCCESS)
     
    978979                GMMR0CheckSharedModulesEnd(pVM);
    979980            }
     981# else
     982            rc = GMMR0CheckSharedModules(pVM, pVCpu);
     983# endif
    980984            return rc;
    981985        }
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