Home
last modified time | relevance | path

Searched refs:allocSize (Results 1 – 2 of 2) sorted by relevance

/oneTBB/src/tbbmalloc/
H A Dbackend.cpp86 size_t allocSize = 0; in allocRawMem() local
95 allocSize = alignUpGeneric(size, extMemPool->granularity); in allocRawMem()
96 res = (*extMemPool->rawAlloc)(extMemPool->poolId, allocSize); in allocRawMem()
101 allocSize = alignUpGeneric(size, pageSize); in allocRawMem()
107 res = getRawMemory(allocSize, PREALLOCATED_HUGE_PAGE); in allocRawMem()
110 res = getRawMemory(allocSize, TRANSPARENT_HUGE_PAGE); in allocRawMem()
115 res = getRawMemory(allocSize, REGULAR); in allocRawMem()
120 MALLOC_ASSERT(allocSize > 0, "Invalid size of an allocated region."); in allocRawMem()
121 size = allocSize; in allocRawMem()
/oneTBB/test/tbbmalloc/
H A Dtest_malloc_whitebox.cpp962 … CacheBinModel(CacheBinType &_cacheBin, size_t allocSize) : cacheBin(_cacheBin), size(allocSize) { in CacheBinModel() argument
1278 size_t allocSize = HUGE_PAGE_SIZE - (i * 1000); in TestTHP() local
1281 allocPtrs[i] = backend->allocRawMem(allocSize); in TestTHP()
1284 REQUIRE_MESSAGE(allocSize == HUGE_PAGE_SIZE, in TestTHP()
1288 memset(allocPtrs[i], 1, allocSize); in TestTHP()