| 683 | } |
| 684 | |
| 685 | void BFCAllocator::SetSafeFrontier(uint64 count) { |
| 686 | uint64 current = safe_frontier_.load(std::memory_order_relaxed); |
| 687 | while (count > current) { |
| 688 | if (safe_frontier_.compare_exchange_strong(current, count)) { |
| 689 | retry_helper_.NotifyDealloc(); |
| 690 | return; |
| 691 | } else { |
| 692 | current = safe_frontier_.load(std::memory_order_relaxed); |
| 693 | } |
| 694 | } |
| 695 | } |
| 696 | |
| 697 | bool BFCAllocator::MergeTimestampedChunks(size_t required_bytes) { |
| 698 | VLOG(1) << "MergeTimestampedChunks queue_len=" << timestamped_chunks_.size() |
no test coverage detected