Merge "Fix for compaction vma batch not consuming after first send" into tm-qpr-dev

This commit is contained in:
Edgar Arriaga García
2022-08-31 21:35:08 +00:00
committed by Android (Google) Code Review

View File

@@ -113,7 +113,7 @@ uint64_t consumeBytes(VmaBatch& batch, uint64_t bytesToConsume) {
uint64_t bytesConsumed = 0;
while (bytesConsumed < bytesToConsume) {
if (CC_UNLIKELY(batch.totalVmas > 0)) {
if (CC_UNLIKELY(batch.totalVmas == 0)) {
// No more vmas to consume
break;
}