VirtualBox

Changeset 8624 in vbox for trunk


Ignore:
Timestamp:
May 6, 2008 1:24:09 PM (17 years ago)
Author:
vboxsync
Message:

Fixed bug in PGMR3CheckIntegrity that would surface during reset in debug and strict builds.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/PGM.cpp

    r8557 r8624  
    37483748    PPGMPHYSHANDLER         pPrevPhys;
    37493749    PPGMVIRTHANDLER         pPrevVirt;
    3750     PPGMPHYS2VIRTHANDLER   pPrevPhys2Virt;
     3750    PPGMPHYS2VIRTHANDLER    pPrevPhys2Virt;
    37513751    PVM                     pVM;
    37523752} PGMCHECKINTARGS, *PPGMCHECKINTARGS;
     
    38863886     */
    38873887    int cErrors = 0;
    3888     PGMCHECKINTARGS Args = { true, NULL, NULL, NULL, pVM };
     3888    const static PGMCHECKINTARGS s_LeftToRight = { true, NULL, NULL, NULL, pVM };
     3889    const static PGMCHECKINTARGS s_RightToLeft = { false, NULL, NULL, NULL, pVM };
     3890    PGMCHECKINTARGS Args = s_LeftToRight;
    38893891    cErrors += RTAvlroGCPhysDoWithAll(&pVM->pgm.s.pTreesHC->PhysHandlers,       true,  pgmR3CheckIntegrityPhysHandlerNode, &Args);
    3890     Args.fLeftToRight = false;
     3892    Args = s_RightToLeft;
    38913893    cErrors += RTAvlroGCPhysDoWithAll(&pVM->pgm.s.pTreesHC->PhysHandlers,       false, pgmR3CheckIntegrityPhysHandlerNode, &Args);
    3892     Args.fLeftToRight = true;
     3894    Args = s_LeftToRight;
    38933895    cErrors += RTAvlroGCPtrDoWithAll( &pVM->pgm.s.pTreesHC->VirtHandlers,       true,  pgmR3CheckIntegrityVirtHandlerNode, &Args);
    3894     Args.fLeftToRight = false;
     3896    Args = s_RightToLeft;
    38953897    cErrors += RTAvlroGCPtrDoWithAll( &pVM->pgm.s.pTreesHC->VirtHandlers,       false, pgmR3CheckIntegrityVirtHandlerNode, &Args);
    3896     Args.fLeftToRight = true;
     3898    Args = s_LeftToRight;
    38973899    cErrors += RTAvlroGCPtrDoWithAll( &pVM->pgm.s.pTreesHC->HyperVirtHandlers,  true,  pgmR3CheckIntegrityVirtHandlerNode, &Args);
    3898     Args.fLeftToRight = false;
     3900    Args = s_RightToLeft;
    38993901    cErrors += RTAvlroGCPtrDoWithAll( &pVM->pgm.s.pTreesHC->HyperVirtHandlers,  false, pgmR3CheckIntegrityVirtHandlerNode, &Args);
    3900     Args.fLeftToRight = true;
     3902    Args = s_LeftToRight;
    39013903    cErrors += RTAvlroGCPhysDoWithAll(&pVM->pgm.s.pTreesHC->PhysToVirtHandlers, true,  pgmR3CheckIntegrityPhysToVirtHandlerNode, &Args);
    3902     Args.fLeftToRight = false;
     3904    Args = s_RightToLeft;
    39033905    cErrors += RTAvlroGCPhysDoWithAll(&pVM->pgm.s.pTreesHC->PhysToVirtHandlers, false, pgmR3CheckIntegrityPhysToVirtHandlerNode, &Args);
    39043906
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