| 1142 | void operator=(const BatchAllocator &); |
| 1143 | |
| 1144 | static BatchInfo *allocateBatch(unsigned int objectsPerPage) { |
| 1145 | const unsigned int mallocSize = |
| 1146 | sizeof(BatchInfo) - sizeof(AllocatedType) * objectPerAllocation + |
| 1147 | sizeof(AllocatedType) * objectPerAllocation * objectsPerPage; |
| 1148 | BatchInfo *batch = static_cast<BatchInfo *>(malloc(mallocSize)); |
| 1149 | batch->next_ = 0; |
| 1150 | batch->used_ = batch->buffer_; |
| 1151 | batch->end_ = batch->buffer_ + objectsPerPage; |
| 1152 | return batch; |
| 1153 | } |
| 1154 | |
| 1155 | BatchInfo *batches_; |
| 1156 | BatchInfo *currentBatch_; |
nothing calls this directly
no outgoing calls
no test coverage detected