VirtualBox

Ignore:
Timestamp:
Dec 13, 2008 1:02:11 AM (16 years ago)
Author:
vboxsync
Message:

Made exitting on the wrong cpu fatal in strict builds but not when we're already in an error path.

File:
1 edited

Legend:

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

    r15404 r15409  
    10211021
    10221022    /* keep track of the CPU owning the VMCS for debugging scheduling weirdness and ring-3 calls. */
    1023     AssertMsg(pVCpu->hwaccm.s.idEnteredCpu == idCpu, ("owner is %d, I'm %d", (int)pVCpu->hwaccm.s.idEnteredCpu, (int)idCpu));
     1023#ifdef RT_STRICT
     1024    if (RT_UNLIKELY(    pVCpu->hwaccm.s.idEnteredCpu != idCpu
     1025                    &&  RT_FAILURE(rc)))
     1026    {
     1027        AssertMsgFailed(("Owner is %d, I'm %d", (int)pVCpu->hwaccm.s.idEnteredCpu, (int)idCpu));
     1028        rc = VERR_INTERNAL_ERROR;
     1029    }
     1030#endif
    10241031    pVCpu->hwaccm.s.idEnteredCpu = NIL_RTCPUID;
    10251032
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