VirtualBox

Changeset 5200 in vbox for trunk/src/VBox/VMM/PATM


Ignore:
Timestamp:
Oct 9, 2007 12:34:23 PM (17 years ago)
Author:
vboxsync
Message:

check pointers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/PATM/CSAM.cpp

    r5198 r5200  
    22562256        {
    22572257            RTGCPTR pHandler = pVM->csam.s.pvCallInstruction[i];
    2258             CSAMP2GLOOKUPREC cacheRec = {0};            /* Cache record for PATMGCVirtToHCVirt. */
    2259             PCSAMPAGE pPage = NULL;
    2260 
    2261             Log(("CSAMCheckGates: checking previous call instruction %VGv\n", pHandler));
    2262             STAM_PROFILE_START(&pVM->csam.s.StatTime, a);
    2263             rc = csamAnalyseCodeStream(pVM, pHandler, pHandler, true, CSAMR3AnalyseCallback, pPage, &cacheRec);
    2264             STAM_PROFILE_STOP(&pVM->csam.s.StatTime, a);
    2265             if (rc != VINF_SUCCESS)
     2258
     2259            if (pHandler)
    22662260            {
    2267                 Log(("CSAMCheckGates: csamAnalyseCodeStream failed with %d\n", rc));
    2268                 continue;
     2261                CSAMP2GLOOKUPREC cacheRec = {0};            /* Cache record for PATMGCVirtToHCVirt. */
     2262                PCSAMPAGE pPage = NULL;
     2263
     2264                Log(("CSAMCheckGates: checking previous call instruction %VGv\n", pHandler));
     2265                STAM_PROFILE_START(&pVM->csam.s.StatTime, a);
     2266                rc = csamAnalyseCodeStream(pVM, pHandler, pHandler, true, CSAMR3AnalyseCallback, pPage, &cacheRec);
     2267                STAM_PROFILE_STOP(&pVM->csam.s.StatTime, a);
     2268                if (rc != VINF_SUCCESS)
     2269                {
     2270                    Log(("CSAMCheckGates: csamAnalyseCodeStream failed with %d\n", rc));
     2271                    continue;
     2272                }
    22692273            }
    22702274        }
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