VirtualBox

Changeset 53695 in vbox for trunk


Ignore:
Timestamp:
Jan 2, 2015 12:42:16 PM (10 years ago)
Author:
vboxsync
Message:

VBoxDTrace: If windows can use standard RTMemAlloc, so can we (doesn't work otherwise). Don't access pHdr before checking fZombie, duh. (r72)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ExtPacks/VBoxDTrace/VBoxDTraceR0/VBoxDTraceR0.cpp

    r53693 r53695  
    5757*   Defined Constants And Macros                                               *
    5858*******************************************************************************/
    59 #if !defined(RT_OS_WINDOWS) && !defined(RT_OS_OS2)
    60 # define HAVE_RTMEMALLOCEX_FEATURES
    61 #endif
     59//#if !defined(RT_OS_WINDOWS) && !defined(RT_OS_OS2)
     60//# define HAVE_RTMEMALLOCEX_FEATURES
     61//#endif
    6262
    6363
     
    13751375{
    13761376    PSUPDRVVDTPROVIDERCORE  pProv        = (PSUPDRVVDTPROVIDERCORE)pvProv;
    1377     PVTGPROBELOC            pProbeLoc    = pProv->pHdr->paProbLocs;
    1378     PVTGPROBELOC            pProbeLocEnd = pProv->pHdr->paProbLocsEnd;
    13791377    dtrace_provider_id_t    idProvider   = pProv->TracerData.DTrace.idProvider;
    13801378    size_t const            cbFnNmBuf    = _4K + _1K;
    13811379    char                   *pszFnNmBuf;
    13821380    uint16_t                idxProv;
     1381    PVTGPROBELOC            pProbeLoc;
     1382    PVTGPROBELOC            pProbeLocEnd;
    13831383
    13841384    if (pDtProbeDesc)
     
    13881388        return;
    13891389
     1390    AssertPtrReturnVoid(pProv->pHdr);
     1391    pProbeLoc    = pProv->pHdr->paProbLocs;
     1392    pProbeLocEnd = pProv->pHdr->paProbLocsEnd;
    13901393    if (pProv->TracerData.DTrace.cProvidedProbes >= (uintptr_t)(pProbeLocEnd - pProbeLoc))
    13911394        return;
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