VirtualBox

Ignore:
Timestamp:
Apr 16, 2012 11:58:26 AM (13 years ago)
Author:
vboxsync
Message:

runtime: backed out r77481,r77482,r77483,r77484,r77485

Location:
trunk/src/VBox/Runtime/common/alloc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/alloc/heapoffset.cpp

    r40930 r40938  
    508508static PRTHEAPOFFSETBLOCK rtHeapOffsetAllocBlock(PRTHEAPOFFSETINTERNAL pHeapInt, size_t cb, size_t uAlignment)
    509509{
    510     PRTHEAPOFFSETBLOCK  pRet = (PRTHEAPOFFSETBLOCK)NULL;
     510    PRTHEAPOFFSETBLOCK  pRet = NULL;
    511511    PRTHEAPOFFSETFREE   pFree;
    512512
    513     AssertReturn((pHeapInt)->u32Magic == RTHEAPOFFSET_MAGIC, (PRTHEAPOFFSETBLOCK)NULL);
     513    AssertReturn((pHeapInt)->u32Magic == RTHEAPOFFSET_MAGIC, NULL);
    514514#ifdef RTHEAPOFFSET_STRICT
    515515    rtHeapOffsetAssertAll(pHeapInt);
     
    704704     * of us (both lists are sorted by address).
    705705     */
    706     pLeft = (PRTHEAPOFFSETFREE)NULL;
    707     pRight = (PRTHEAPOFFSETFREE)NULL;
     706    pLeft = NULL;
     707    pRight = NULL;
    708708    if (pHeapInt->offFreeTail)
    709709    {
     
    814814static void rtHeapOffsetAssertAll(PRTHEAPOFFSETINTERNAL pHeapInt)
    815815{
    816     PRTHEAPOFFSETFREE pPrev = (PRTHEAPOFFSETFREE)NULL;
    817     PRTHEAPOFFSETFREE pPrevFree = (PRTHEAPOFFSETFREE)NULL;
     816    PRTHEAPOFFSETFREE pPrev = NULL;
     817    PRTHEAPOFFSETFREE pPrevFree = NULL;
    818818    PRTHEAPOFFSETFREE pBlock;
    819819    for (pBlock = (PRTHEAPOFFSETFREE)(pHeapInt + 1);
  • trunk/src/VBox/Runtime/common/alloc/heapsimple.cpp

    r40932 r40938  
    318318    /* Init the single free block. */
    319319    pFree = pHeapInt->pFreeHead;
    320     pFree->Core.pNext = (PRTHEAPSIMPLEBLOCK)NULL;
    321     pFree->Core.pPrev = (PRTHEAPSIMPLEBLOCK)NULL;
     320    pFree->Core.pNext = NULL;
     321    pFree->Core.pPrev = NULL;
    322322    pFree->Core.pHeap = pHeapInt;
    323323    pFree->Core.fFlags = RTHEAPSIMPLEBLOCK_FLAGS_MAGIC | RTHEAPSIMPLEBLOCK_FLAGS_FREE;
    324     pFree->pNext = (PRTHEAPSIMPLEFREE)NULL;
    325     pFree->pPrev = (PRTHEAPSIMPLEFREE)NULL;
     324    pFree->pNext = NULL;
     325    pFree->pPrev = NULL;
    326326    pFree->cb = pHeapInt->cbFree;
    327327
     
    476476static PRTHEAPSIMPLEBLOCK rtHeapSimpleAllocBlock(PRTHEAPSIMPLEINTERNAL pHeapInt, size_t cb, size_t uAlignment)
    477477{
    478     PRTHEAPSIMPLEBLOCK  pRet = (PRTHEAPSIMPLEBLOCK)NULL;
     478    PRTHEAPSIMPLEBLOCK  pRet = NULL;
    479479    PRTHEAPSIMPLEFREE   pFree;
    480480
     
    533533                pPrev = (PRTHEAPSIMPLEBLOCK)(pHeapInt + 1);
    534534                Assert(pPrev == &pFree->Core);
    535                 pPrev->pPrev = (PRTHEAPSIMPLEBLOCK)NULL;
     535                pPrev->pPrev = NULL;
    536536                pPrev->pNext = &pFree->Core;
    537537                pPrev->pHeap = pHeapInt;
     
    696696     * of us (both lists are sorted by address).
    697697     */
    698     pLeft = (PRTHEAPSIMPLEFREE)NULL;
    699     pRight = (PRTHEAPSIMPLEFREE)NULL;
     698    pLeft = NULL;
     699    pRight = NULL;
    700700    if (pHeapInt->pFreeTail)
    701701    {
     
    728728        Assert(pRight == pHeapInt->pFreeHead);
    729729        pFree->Core.fFlags |= RTHEAPSIMPLEBLOCK_FLAGS_FREE;
    730         pFree->pPrev = (PRTHEAPSIMPLEFREE)NULL;
     730        pFree->pPrev = NULL;
    731731        pFree->pNext = pRight;
    732732        if (pRight)
     
    806806static void rtHeapSimpleAssertAll(PRTHEAPSIMPLEINTERNAL pHeapInt)
    807807{
    808     PRTHEAPSIMPLEFREE pPrev = (PRTHEAPSIMPLEFREE)NULL;
    809     PRTHEAPSIMPLEFREE pPrevFree = (PRTHEAPSIMPLEFREE)NULL;
     808    PRTHEAPSIMPLEFREE pPrev = NULL;
     809    PRTHEAPSIMPLEFREE pPrevFree = NULL;
    810810    PRTHEAPSIMPLEFREE pBlock;
    811811    for (pBlock = (PRTHEAPSIMPLEFREE)(pHeapInt + 1);
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