Lines Matching refs:pvAlloc
72 void *pvAlloc;
107 s_aOps[i].pvAlloc = RTHeapOffsetAlloc(Heap, s_aOps[i].cb, s_aOps[i].uAlignment);
108 RTTESTI_CHECK_MSG(s_aOps[i].pvAlloc, ("RTHeapOffsetAlloc(%p, %#x, %#x,) -> NULL i=%d\n", (void *)Heap, s_aOps[i].cb, s_aOps[i].uAlignment, i));
109 if (!s_aOps[i].pvAlloc)
112 memset(s_aOps[i].pvAlloc, s_szFill[i], s_aOps[i].cb);
113 RTTESTI_CHECK_MSG(RT_ALIGN_P(s_aOps[i].pvAlloc, (s_aOps[i].uAlignment ? s_aOps[i].uAlignment : 8)) == s_aOps[i].pvAlloc,
115 if (!s_aOps[i].pvAlloc)
122 if (!s_aOps[i].pvAlloc)
124 //RTPrintf("debug: i=%d pv=%#x cb=%#zx align=%#zx cbReal=%#zx\n", i, s_aOps[i].pvAlloc,
125 // s_aOps[i].cb, s_aOps[i].uAlignment, RTHeapOffsetSize(Heap, s_aOps[i].pvAlloc));
127 RTHeapOffsetFree(Heap, s_aOps[i].pvAlloc);
138 if (pv != s_aOps[i].pvAlloc)
139 RTTestIPrintf(RTTESTLVL_ALWAYS, "Warning: Free+Alloc returned different address. new=%p old=%p i=%d\n", pv, s_aOps[i].pvAlloc, i);
140 s_aOps[i].pvAlloc = pv;
166 || !s_aOps[j].pvAlloc)
168 //RTPrintf("j=%d i=%d free=%d cb=%d pv=%p\n", j, i, RTHeapOffsetGetFreeSize(Heap), s_aOps[j].cb, s_aOps[j].pvAlloc);
169 RTHeapOffsetFree(Heap, s_aOps[j].pvAlloc);
170 s_aOps[j].pvAlloc = NULL;
197 || !s_aOpsCopy[j].pvAlloc)
199 //RTPrintf("j=%d i=%d free=%d cb=%d pv=%p\n", j, i, RTHeapOffsetGetFreeSize(hHeapCopy), s_aOpsCopy[j].cb, s_aOpsCopy[j].pvAlloc);
200 RTHeapOffsetFree(hHeapCopy, (uint8_t *)s_aOpsCopy[j].pvAlloc + offDelta);
201 s_aOpsCopy[j].pvAlloc = NULL;