Home | History | Annotate | Download | only in util

Lines Matching refs:block

50   // We do not know for sure whether or not the first block is aligned,
72 AllocatedBlock *block;
73 // Find the next block.
76 block = &first_blocks_[blocks_alloced_++];
79 // Adds another block to the vector.
81 // block points to the last block of the vector.
82 block = &overflow_blocks_->back();
85 block->mem = reinterpret_cast<char*>(malloc(block_size));
86 block->size = block_size;
88 return block;
95 // allocate a new block (wasting the remaining space in the
96 // current block) and give you that. If your memory needs are
97 // too big for a single block, we make a special your-memory-only
107 // If the object is more than a quarter of the block size, allocate
110 // then it gets its own block in the arena
112 // This block stays separate from the rest of the world; in particular
113 // we don't update last_alloc_ so you can't reclaim space on this block.
129 AllocatedBlock *block = AllocNewBlock(block_size_);
130 freestart_ = block->mem;
131 remaining_ = block->size;
152 for ( int i = 1; i < blocks_alloced_; ++i ) { // keep first block alloced