Lines Matching defs:pv
124 //RTPrintf("debug: i=%d pv=%#x cb=%#zx align=%#zx cbReal=%#zx\n", i, s_aOps[i].pvAlloc,
130 void *pv;
131 pv = RTHeapOffsetAlloc(Heap, s_aOps[i].cb, s_aOps[i].uAlignment);
132 RTTESTI_CHECK_MSG(pv, ("RTHeapOffsetAlloc(%p, %#x, %#x,) -> NULL i=%d\n", (void *)Heap, s_aOps[i].cb, s_aOps[i].uAlignment, i));
133 if (!pv)
135 //RTPrintf("debug: i=%d pv=%p cbReal=%#zx cbBeforeSub=%#zx cbAfterSubFree=%#zx cbAfterSubAlloc=%#zx \n", i, pv, RTHeapOffsetSize(Heap, pv),
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;
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);
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);
232 void *pv;
239 if (!s_aHistory[i].pv)
243 s_aHistory[i].pv = RTHeapOffsetAlloc(Heap, s_aHistory[i].cb, uAlignment);
244 if (!s_aHistory[i].pv)
247 s_aHistory[i].pv = RTHeapOffsetAlloc(Heap, s_aHistory[i].cb, 0);
249 if (s_aHistory[i].pv)
250 memset(s_aHistory[i].pv, 0xbb, s_aHistory[i].cb);
254 RTHeapOffsetFree(Heap, s_aHistory[i].pv);
255 s_aHistory[i].pv = NULL;
262 if (!s_aHistory[i].pv)
265 s_aHistory[i].pv = RTHeapOffsetAlloc(Heap, s_aHistory[i].cb, 0);
269 if (!s_aHistory[i].pv)
272 s_aHistory[i].pv = RTHeapOffsetAlloc(Heap, s_aHistory[i].cb, 1);
274 if (s_aHistory[i].pv)
275 memset(s_aHistory[i].pv, 0x55, s_aHistory[i].cb);
284 RTHeapOffsetFree(Heap, s_aHistory[i].pv);
285 s_aHistory[i].pv = NULL;
295 RTHeapOffsetFree(Heap, s_aHistory[i].pv);
296 s_aHistory[i].pv = NULL;