| 447 | } |
| 448 | |
| 449 | size_t BatchAllocate(size_t num, void **ret) { |
| 450 | if (list_.size() >= num) { |
| 451 | for (int i = 0; i < num; i++) { |
| 452 | ret[i] = list_.back(); |
| 453 | list_.pop_back(); |
| 454 | } |
| 455 | return num; |
| 456 | } |
| 457 | |
| 458 | return arena_->BatchAllocate(num, t_bin_size_, ret); |
| 459 | } |
| 460 | |
| 461 | void Deallocate(void *ptr) { |
| 462 | list_.push_front(ptr); |
nothing calls this directly
no test coverage detected