Lines Matching refs:pvObj
462 void *pvObj = &pPage->pbObjects[iObj * pThis->cbObject];
463 Assert((uintptr_t)pvObj - (uintptr_t)pPage < PAGE_SIZE);
471 int rc = pThis->pfnCtor(hMemCache, pvObj, pThis->pvUser);
475 RTMemCacheFree(pThis, pvObj);
480 *ppvObj = pvObj;
487 void *pvObj;
488 int rc = RTMemCacheAllocEx(hMemCache, &pvObj);
490 return pvObj;
500 * @param pvObj The memory object to free.
502 static void rtMemCacheFreeOne(RTMEMCACHEINT *pThis, void *pvObj)
509 PRTMEMCACHEPAGE pPage = (PRTMEMCACHEPAGE)(((uintptr_t)pvObj) & ~(uintptr_t)PAGE_OFFSET_MASK);
516 uintptr_t offObj = (uintptr_t)pvObj - (uintptr_t)pPage->pbObjects;
547 RTDECL(void) RTMemCacheFree(RTMEMCACHE hMemCache, void *pvObj)
549 if (!pvObj)
556 AssertPtr(pvObj);
557 Assert(RT_ALIGN_P(pvObj, pThis->cbAlignment) == pvObj);
560 rtMemCacheFreeOne(pThis, pvObj);
565 PRTMEMCACHEPAGE pPage = (PRTMEMCACHEPAGE)(((uintptr_t)pvObj) & ~(uintptr_t)PAGE_OFFSET_MASK);
568 uintptr_t offObj = (uintptr_t)pvObj - (uintptr_t)pPage->pbObjects;
578 PRTMEMCACHEFREEOBJ pObj = (PRTMEMCACHEFREEOBJ)pvObj;