Lines Matching refs:SDK_ASSERTMSG

376     SDK_ASSERTMSG(id < OS_ARENA_MAX, OS_ERR_ALLOCFROMHEAP_INVID);  in OS_AllocFromHeap()
377 SDK_ASSERTMSG(OSiHeapInfo[id], OS_ERR_ALLOCFROMHEAP_NOINFO); in OS_AllocFromHeap()
393 SDK_ASSERTMSG(heapInfo->heapArray, OS_ERR_ALLOCFROMHEAP_NOHEAP); in OS_AllocFromHeap()
394 SDK_ASSERTMSG(0 < ((long)size), OS_ERR_ALLOCFROMHEAP_INVSIZE); in OS_AllocFromHeap()
395 SDK_ASSERTMSG(0 <= heap && heap < heapInfo->numHeaps, OS_ERR_ALLOCFROMHEAP_INVHEAP); in OS_AllocFromHeap()
396 SDK_ASSERTMSG(0 <= heapInfo->heapArray[heap].size, OS_ERR_ALLOCFROMHEAP_INVHEAP); in OS_AllocFromHeap()
422 SDK_ASSERTMSG(OFFSET(cell, ALIGNMENT) == 0, OS_ERR_ALLOCFROMHEAP_BROKENHEAP); in OS_AllocFromHeap()
423 SDK_ASSERTMSG(cell->hd == NULL, OS_ERR_ALLOCFROMHEAP_BROKENHEAP); in OS_AllocFromHeap()
458 SDK_ASSERTMSG(hd->free == cell, OS_ERR_ALLOCFROMHEAP_BROKENHEAP); in OS_AllocFromHeap()
506 SDK_ASSERTMSG(id < OS_ARENA_MAX, OS_ERR_ALLOCFIXED_INVID); in OS_AllocFixed()
507 SDK_ASSERTMSG(OSiHeapInfo[id], OS_ERR_ALLOCFIXED_NOINFO); in OS_AllocFixed()
510 SDK_ASSERTMSG(heapInfo->heapArray, OS_ERR_ALLOCFIXED_NOHEAP); in OS_AllocFixed()
511 SDK_ASSERTMSG(start < end, OS_ERR_ALLOCFIXED_INVRANGE); in OS_AllocFixed()
512SDK_ASSERTMSG(RangeSubset(start, end, heapInfo->arenaStart, heapInfo->arenaEnd), OS_ERR_ALLOCFIXED… in OS_AllocFixed()
682 SDK_ASSERTMSG(id < OS_ARENA_MAX, OS_ERR_FREETOHEAP_INVID); in OS_FreeToHeap()
683 SDK_ASSERTMSG(OSiHeapInfo[id], OS_ERR_FREETOHEAP_NOINFO); in OS_FreeToHeap()
691 SDK_ASSERTMSG(heapInfo->heapArray, OS_ERR_FREETOHEAP_NOHEAP); in OS_FreeToHeap()
697SDK_ASSERTMSG(InRange(ptr, (char *)heapInfo->arenaStart + HEADERSIZE, (char *)heapInfo->arenaEnd),… in OS_FreeToHeap()
702 SDK_ASSERTMSG(OFFSET(ptr, ALIGNMENT) == 0, OS_ERR_FREETOHEAP_INVPTR); in OS_FreeToHeap()
703 SDK_ASSERTMSG(0 <= heapInfo->heapArray[heap].size, OS_ERR_FREETOHEAP_INVHEAP); in OS_FreeToHeap()
708 SDK_ASSERTMSG(cell->hd == hd, OS_ERR_FREETOHEAP_INVPTR); in OS_FreeToHeap()
709 SDK_ASSERTMSG(DLLookup(hd->allocated, cell), OS_ERR_FREETOHEAP_INVPTR); in OS_FreeToHeap()
746 SDK_ASSERTMSG(id < OS_ARENA_MAX, OS_ERR_FREETOHEAP_INVID); in OS_FreeAllToHeap()
747 SDK_ASSERTMSG(OSiHeapInfo[id], OS_ERR_FREETOHEAP_NOINFO); in OS_FreeAllToHeap()
755 SDK_ASSERTMSG(heapInfo->heapArray, "heap not initialized"); in OS_FreeAllToHeap()
756 SDK_ASSERTMSG(0 <= heapInfo->heapArray[heap].size, "invalid heap handle"); in OS_FreeAllToHeap()
800 SDK_ASSERTMSG(id < OS_ARENA_MAX, OS_ERR_SETCURRENTHEAP_INVID); in OS_SetCurrentHeap()
801 SDK_ASSERTMSG(OSiHeapInfo[id], OS_ERR_SETCURRENTHEAP_NOINFO); in OS_SetCurrentHeap()
804 SDK_ASSERTMSG(heapInfo->heapArray, OS_ERR_SETCURRENTHEAP_NOHEAP); in OS_SetCurrentHeap()
805 SDK_ASSERTMSG(0 <= heap && heap < heapInfo->numHeaps, OS_ERR_SETCURRENTHEAP_INVHEAP); in OS_SetCurrentHeap()
806 SDK_ASSERTMSG(0 <= heapInfo->heapArray[heap].size, OS_ERR_SETCURRENTHEAP_INVHEAP); in OS_SetCurrentHeap()
838 SDK_ASSERTMSG(id < OS_ARENA_MAX, OS_ERR_INITALLOC_INVID); in OS_InitAlloc()
839 SDK_ASSERTMSG(OSiHeapInfo[id] == NULL, OS_ERR_INITALLOC_INVINFO); in OS_InitAlloc()
841 SDK_ASSERTMSG(0 < maxHeaps, OS_ERR_INITALLOC_INVNUMHEAPS); in OS_InitAlloc()
842 SDK_ASSERTMSG((char *)arenaStart < (char *)arenaEnd, OS_ERR_INITALLOC_INVRANGE); in OS_InitAlloc()
843SDK_ASSERTMSG(maxHeaps <= ((char *)arenaEnd - (char *)arenaStart) / sizeof(HeapDesc), OS_ERR_INITA… in OS_InitAlloc()
874SDK_ASSERTMSG(MINOBJSIZE <= (char *)heapInfo->arenaEnd - (char *)heapInfo->arenaStart, OS_ERR_INIT… in OS_InitAlloc()
892 SDK_ASSERTMSG(id < OS_ARENA_MAX, OS_ERR_CLEARALLOC_INVID); in OS_ClearAlloc()
922 SDK_ASSERTMSG(id < OS_ARENA_MAX, OS_ERR_CREATEHEAP_INVID); in OS_CreateHeap()
923 SDK_ASSERTMSG(OSiHeapInfo[id], OS_ERR_CREATEHEAP_NOINFO); in OS_CreateHeap()
926 SDK_ASSERTMSG(heapInfo->heapArray, OS_ERR_CREATEHEAP_NOHEAP); in OS_CreateHeap()
927 SDK_ASSERTMSG(start < end, OS_ERR_CREATEHEAP_INVRANGE); in OS_CreateHeap()
930 SDK_ASSERTMSG(start < end, OS_ERR_CREATEHEAP_INVRANGE); in OS_CreateHeap()
931SDK_ASSERTMSG(RangeSubset(start, end, heapInfo->arenaStart, heapInfo->arenaEnd), OS_ERR_CREATEHEAP… in OS_CreateHeap()
932 SDK_ASSERTMSG(MINOBJSIZE <= (char *)end - (char *)start, OS_ERR_CREATEHEAP_INSRANGE); in OS_CreateHeap()
943SDK_ASSERTMSG(!DLOverlap(heapInfo->heapArray[heap].free, start, end), OS_ERR_CREATEHEAP_INVRANGE); in OS_CreateHeap()
944SDK_ASSERTMSG(!DLOverlap(heapInfo->heapArray[heap].allocated, start, end), OS_ERR_CREATEHEAP_INVRA… in OS_CreateHeap()
1005 SDK_ASSERTMSG(id < OS_ARENA_MAX, OS_ERR_CREATEHEAP_INVID); in OS_CreateExtraHeap()
1008 SDK_ASSERTMSG(heapInfo, OS_ERR_CREATEHEAP_NOINFO); in OS_CreateExtraHeap()
1009 SDK_ASSERTMSG(heapInfo->heapArray, OS_ERR_CREATEHEAP_NOHEAP); in OS_CreateExtraHeap()
1072 SDK_ASSERTMSG(id < OS_ARENA_MAX, OS_ERR_DESTROYHEAP_INVID); in OS_DestroyHeap()
1073 SDK_ASSERTMSG(OSiHeapInfo[id], OS_ERR_DESTROYHEAP_NOINFO); in OS_DestroyHeap()
1076 SDK_ASSERTMSG(heapInfo->heapArray, OS_ERR_DESTROYHEAP_NOHEAP); in OS_DestroyHeap()
1077 SDK_ASSERTMSG(0 <= heap && heap < heapInfo->numHeaps, OS_ERR_DESTROYHEAP_INVHEAP); in OS_DestroyHeap()
1078 SDK_ASSERTMSG(0 <= heapInfo->heapArray[heap].size, OS_ERR_DESTROYHEAP_INVHEAP); in OS_DestroyHeap()
1139 SDK_ASSERTMSG(id < OS_ARENA_MAX, OS_ERR_ADDTOHEAP_INVID); in OS_AddToHeap()
1140 SDK_ASSERTMSG(OSiHeapInfo[id], OS_ERR_ADDTOHEAP_NOINFO); in OS_AddToHeap()
1143 SDK_ASSERTMSG(heapInfo->heapArray, OS_ERR_ADDTOHEAP_NOHEAP); in OS_AddToHeap()
1144 SDK_ASSERTMSG(0 <= heap && heap < heapInfo->numHeaps, OS_ERR_ADDTOHEAP_INVHEAP); in OS_AddToHeap()
1145 SDK_ASSERTMSG(0 <= heapInfo->heapArray[heap].size, OS_ERR_ADDTOHEAP_INVHEAP); in OS_AddToHeap()
1149 SDK_ASSERTMSG(start < end, OS_ERR_ADDTOHEAP_INVRANGE); in OS_AddToHeap()
1153 SDK_ASSERTMSG(MINOBJSIZE <= (char *)end - (char *)start, OS_ERR_ADDTOHEAP_INSRANGE); in OS_AddToHeap()
1160SDK_ASSERTMSG(RangeSubset(start, end, heapInfo->arenaStart, heapInfo->arenaEnd), OS_ERR_ADDTOHEAP_… in OS_AddToHeap()
1175SDK_ASSERTMSG(!DLOverlap(heapInfo->heapArray[i].free, start, end), OS_ERR_ADDTOHEAP_INVRANGE); in OS_AddToHeap()
1176SDK_ASSERTMSG(!DLOverlap(heapInfo->heapArray[i].allocated, start, end), OS_ERR_ADDTOHEAP_INVRANGE); in OS_AddToHeap()
1276 SDK_ASSERTMSG(id < OS_ARENA_MAX, OS_ERR_CHECKHEAP_INVID); in OS_CheckHeap()
1277 SDK_ASSERTMSG(OSiHeapInfo[id], OS_ERR_CHECKHEAP_NOINFO); in OS_CheckHeap()
1374 SDK_ASSERTMSG(id < OS_ARENA_MAX, OS_ERR_REFERENTSIZE_INVID); in OS_ReferentSize()
1375 SDK_ASSERTMSG(OSiHeapInfo[id], OS_ERR_REFERENTSIZE_NOINFO); in OS_ReferentSize()
1378 SDK_ASSERTMSG(heapInfo->heapArray, OS_ERR_REFERENT_NOHEAP); in OS_ReferentSize()
1384SDK_ASSERTMSG(InRange(ptr, (char *)heapInfo->arenaStart + HEADERSIZE, (char *)heapInfo->arenaEnd),… in OS_ReferentSize()
1389 SDK_ASSERTMSG(OFFSET(ptr, ALIGNMENT) == 0, OS_ERR_REFERENT_INVPTR); in OS_ReferentSize()
1393 SDK_ASSERTMSG(cell->hd, OS_ERR_REFERENT_INVPTR); in OS_ReferentSize()
1394SDK_ASSERTMSG(((char *)cell->hd - (char *)heapInfo->heapArray) % sizeof(HeapDesc) == 0, OS_ERR_REF… in OS_ReferentSize()
1395SDK_ASSERTMSG(heapInfo->heapArray <= cell->hd && cell->hd < &heapInfo->heapArray[heapInfo->numHeap… in OS_ReferentSize()
1396 SDK_ASSERTMSG(0 <= cell->hd->size, OS_ERR_REFERENT_INVPTR); in OS_ReferentSize()
1397 SDK_ASSERTMSG(DLLookup(cell->hd->allocated, cell), OS_ERR_REFERENT_INVPTR); in OS_ReferentSize()
1422 SDK_ASSERTMSG(id < OS_ARENA_MAX, OS_ERR_DUMPHEAP_INVID); in OS_DumpHeap()
1423 SDK_ASSERTMSG(OSiHeapInfo[id], OS_ERR_DUMPHEAP_NOINFO); in OS_DumpHeap()
1426 SDK_ASSERTMSG(heapInfo && heapInfo->heapArray, OS_ERR_DUMPHEAP_NOHEAP); in OS_DumpHeap()
1433 SDK_ASSERTMSG(0 <= heap && heap < heapInfo->numHeaps, OS_ERR_DUMPHEAP_INVHEAP); in OS_DumpHeap()
1442 SDK_ASSERTMSG(0 <= OS_CheckHeap(id, heap), OS_ERR_DUMPHEAP_BROKENHEAP); in OS_DumpHeap()
1454 SDK_ASSERTMSG(hd->allocated == NULL || hd->allocated->prev == NULL, OS_ERR_DUMPHEAP_BROKENHEAP); in OS_DumpHeap()
1511 SDK_ASSERTMSG(id < OS_ARENA_MAX, OS_ERR_VISITALLOCATED_INVID); in OS_VisitAllocated()
1512 SDK_ASSERTMSG(OSiHeapInfo[id], OS_ERR_VISITALLOCATED_NOINFO); in OS_VisitAllocated()
1687 SDK_ASSERTMSG(id < OS_ARENA_MAX, "invalid id"); in OS_ClearHeap()
1691 SDK_ASSERTMSG(heapInfo && heapInfo->heapArray, "heap not initialized"); in OS_ClearHeap()
1692 SDK_ASSERTMSG(start < end, "invalid range"); in OS_ClearHeap()
1695 SDK_ASSERTMSG(start < end, "invalid range"); in OS_ClearHeap()
1701SDK_ASSERTMSG(RangeSubset(start, end, heapInfo->arenaStart, heapInfo->arenaEnd), "invalid range"); in OS_ClearHeap()
1706 SDK_ASSERTMSG(MINOBJSIZE <= (char *)end - (char *)start, "too small range"); in OS_ClearHeap()