Lines Matching refs:aOps

114     } aOps[] =
147 for (i = 0; i < RT_ELEMENTS(aOps); i++)
149 rc = MMHyperAlloc(pVM, aOps[i].cb, aOps[i].uAlignment, MM_TAG_VM, &aOps[i].pvAlloc);
152 RTPrintf("Failure: MMHyperAlloc(, %#x, %#x,) -> %d i=%d\n", aOps[i].cb, aOps[i].uAlignment, rc, i);
155 memset(aOps[i].pvAlloc, szFill[i], aOps[i].cb);
156 if (RT_ALIGN_P(aOps[i].pvAlloc, (aOps[i].uAlignment ? aOps[i].uAlignment : 8)) != aOps[i].pvAlloc)
158 RTPrintf("Failure: MMHyperAlloc(, %#x, %#x,) -> %p, invalid alignment!\n", aOps[i].cb, aOps[i].uAlignment, aOps[i].pvAlloc);
164 for (i = 0; i < RT_ELEMENTS(aOps); i++)
166 if ( !aOps[i].pvAlloc
167 || aOps[i].uAlignment == PAGE_SIZE)
170 rc = MMHyperFree(pVM, aOps[i].pvAlloc);
173 RTPrintf("Failure: MMHyperFree(, %p,) -> %d i=%d\n", aOps[i].pvAlloc, rc, i);
178 rc = MMHyperAlloc(pVM, aOps[i].cb, aOps[i].uAlignment, MM_TAG_VM_REQ, &pv);
181 RTPrintf("Failure: MMHyperAlloc(, %#x, %#x,) -> %d i=%d\n", aOps[i].cb, aOps[i].uAlignment, rc, i);
184 if (pv != aOps[i].pvAlloc)
186 RTPrintf("Failure: Free+Alloc returned different address. new=%p old=%p i=%d (doesn't work with delayed free)\n", pv, aOps[i].pvAlloc, i);
189 aOps[i].pvAlloc = pv;
202 for (i = 0; i < RT_ELEMENTS(aOps); i++)
205 for (j = 0; j < RT_ELEMENTS(aOps); j++)
207 if ( aOps[j].iFreeOrder != i
208 || !aOps[j].pvAlloc)
210 RTPrintf("j=%d i=%d free=%d cb=%d pv=%p\n", j, i, MMHyperHeapGetFreeSize(pVM), aOps[j].cb, aOps[j].pvAlloc);
211 if (aOps[j].uAlignment == PAGE_SIZE)
212 cbBefore -= aOps[j].cb;
215 rc = MMHyperFree(pVM, aOps[j].pvAlloc);
218 RTPrintf("Failure: MMHyperFree(, %p,) -> %d j=%d i=%d\n", aOps[j].pvAlloc, rc, i, j);
222 aOps[j].pvAlloc = NULL;
226 Assert(cFreed == RT_ELEMENTS(aOps));