VirtualBox

Changeset 7018 in vbox


Ignore:
Timestamp:
Feb 19, 2008 2:12:01 PM (17 years ago)
Author:
vboxsync
Message:

Assert+Break out of the scheduling loop if the links have gone bad.

File:
1 edited

Legend:

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

    r6801 r7018  
    11901190    unsigned cTodo2nd = 0;
    11911191    unsigned cTodo3rd = 0;
    1192     for (unsigned i = pGVMM->iUsedHead;
     1192    for (unsigned i = pGVMM->iUsedHead, cGuard = 0;
    11931193         i != NIL_GVM_HANDLE && i < RT_ELEMENTS(pGVMM->aHandles);
    11941194         i = pGVMM->aHandles[i].iNext)
     
    12201220            }
    12211221        }
     1222        AssertLogRelBreak(cGuard++ < RT_ELEMENTS(pGVMM->aHandles));
    12221223    }
    12231224
    12241225    if (cTodo2nd)
    12251226    {
    1226         for (unsigned i = pGVMM->iUsedHead;
     1227        for (unsigned i = pGVMM->iUsedHead, cGuard;
    12271228             i != NIL_GVM_HANDLE && i < RT_ELEMENTS(pGVMM->aHandles);
    12281229             i = pGVMM->aHandles[i].iNext)
     
    12411242                }
    12421243            }
     1244            AssertLogRelBreak(cGuard++ < RT_ELEMENTS(pGVMM->aHandles));
    12431245        }
    12441246    }
     
    12461248    if (cTodo3rd)
    12471249    {
    1248         for (unsigned i = pGVMM->iUsedHead;
     1250        for (unsigned i = pGVMM->iUsedHead, cGuard = 0;
    12491251             i != NIL_GVM_HANDLE && i < RT_ELEMENTS(pGVMM->aHandles);
    12501252             i = pGVMM->aHandles[i].iNext)
     
    12631265                }
    12641266            }
     1267            AssertLogRelBreak(cGuard++ < RT_ELEMENTS(pGVMM->aHandles));
    12651268        }
    12661269    }
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