Lines Matching refs:pNew
574 PRTHEAPSIMPLEFREE pNew = (PRTHEAPSIMPLEFREE)((uintptr_t)&pFree->Core + cb + sizeof(RTHEAPSIMPLEBLOCK));
576 pNew->Core.pNext = pFree->Core.pNext;
578 pFree->Core.pNext->pPrev = &pNew->Core;
579 pNew->Core.pPrev = &pFree->Core;
580 pNew->Core.pHeap = pHeapInt;
581 pNew->Core.fFlags = RTHEAPSIMPLEBLOCK_FLAGS_MAGIC | RTHEAPSIMPLEBLOCK_FLAGS_FREE;
583 pNew->pNext = pFree->pNext;
584 if (pNew->pNext)
585 pNew->pNext->pPrev = pNew;
587 pHeapInt->pFreeTail = pNew;
588 pNew->pPrev = pFree->pPrev;
589 if (pNew->pPrev)
590 pNew->pPrev->pNext = pNew;
592 pHeapInt->pFreeHead = pNew;
593 pNew->cb = (pNew->Core.pNext ? (uintptr_t)pNew->Core.pNext : (uintptr_t)pHeapInt->pvEnd) \
594 - (uintptr_t)pNew - sizeof(RTHEAPSIMPLEBLOCK);
595 ASSERT_BLOCK_FREE(pHeapInt, pNew);
601 pFree->Core.pNext = &pNew->Core;
603 pHeapInt->cbFree += pNew->cb;