Searched refs:allocSz (Results 1 – 2 of 2) sorted by relevance
| /oneTBB/test/tbbmalloc/ |
| H A D | test_malloc_regression.cpp | 125 size_t allocSz[] = {4, 8, 512, 2*1024, 4*1024, 8*1024, 16*1024, 0}; in TestAlignedMsize() local 129 for (int s=0; allocSz[s]; s++) { in TestAlignedMsize() 131 p[i] = (char*)scalable_aligned_malloc(allocSz[s], align[a]); in TestAlignedMsize() 137 … CHECK_FAST_MESSAGE(objSizes[i] >= allocSz[s], "allocated size must be not less than requested"); in TestAlignedMsize() 146 p[i] = (char*)scalable_aligned_realloc(p[i], 2*allocSz[s], align[a]); in TestAlignedMsize() 148 memset((char*)p[i]+allocSz[s], i+1, allocSz[s]); in TestAlignedMsize() 151 for (unsigned j=0; j<allocSz[s]; j++) in TestAlignedMsize() 153 for (size_t j=allocSz[s]; j<2*allocSz[s]; j++) in TestAlignedMsize()
|
| /oneTBB/src/tbbmalloc/ |
| H A D | backend.cpp | 200 size_t allocSz, // got from pool callback member 977 const size_t oldRegionSize = oldRegion->allocSz; in remap() 993 void *ret = mremap(oldRegion, oldRegion->allocSz, requestSize, MREMAP_MAYMOVE); in remap() 1001 region->allocSz = requestSize; in remap() 1029 totalMemSize.fetch_add(region->allocSz - oldRegionSize); in remap() 1038 freeRawMem(memRegion, memRegion->allocSz); in releaseRegion() 1118 MALLOC_ASSERT((uintptr_t)memRegion + memRegion->allocSz >= in doCoalesc() 1232 lastFreeBlock = (uintptr_t)region + region->allocSz - sizeof(LastFreeBlock); in findBlockInRegion() 1355 region->allocSz = rawSize; in addNewRegion() 1404 noError &= freeRawMem(regionList.head, regionList.head->allocSz); in destroy()
|