Home
last modified time | relevance | path

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

/bionic/benchmarks/
Dmalloc_rss_benchmark.cpp55 void* MemPool[kMaxThreads][kMaxLen]; variable
72 MemPool[id][i] = malloc(allocSize); in ThreadTask()
73 if (MemPool[id][i] == 0) { in ThreadTask()
79 dirtyMem(MemPool[id][i], allocSize); in ThreadTask()
88 std::shuffle(MemPool[id], MemPool[id] + maxCounts, std::default_random_engine(seed)); in ThreadTask()
90 free(MemPool[id][i]); in ThreadTask()
91 MemPool[id][i] = nullptr; in ThreadTask()
95 MemPool[id][i] = malloc(allocSize); in ThreadTask()
96 dirtyMem(MemPool[id][i], allocSize); in ThreadTask()
139 for (size_t j = 0; j < kMaxLen; ++j) free(MemPool[i][j]); in StressSizeClass()
Dmalloc_benchmark.cpp113 void** MemPool; in RunThreadsThroughput() local
116 MemPool = new void*[AllocCounts]; in RunThreadsThroughput()
121 MemPool[j] = ptr; in RunThreadsThroughput()
126 std::shuffle(MemPool, &MemPool[AllocCounts], std::default_random_engine(seed)); in RunThreadsThroughput()
128 for (size_t j = 0; j < AllocCounts; ++j) free(MemPool[j]); in RunThreadsThroughput()
131 delete[] MemPool; in RunThreadsThroughput()