Home | History | Annotate | Download | only in cctest

Lines Matching refs:blocks

160 // Tests memory management in a CodeRange by allocating and freeing blocks,
194 List<Block> blocks(1000);
205 blocks.Add(Block(base, static_cast<int>(allocated)));
210 int index = Pseudorandom() % blocks.length();
211 code_range->FreeRawMemory(blocks[index].base, blocks[index].size);
212 current_allocated -= blocks[index].size;
213 if (index < blocks.length() - 1) {
214 blocks[index] = blocks.RemoveLast();
216 blocks.RemoveLast();