Exclude cached blocks with invalid start address. Mainly concerned with
cached blocks that are still available/unused.
Reviewed By: Chia-hungDuan, cferris
Differential Revision: https://reviews.llvm.org/D154148
EntriesCount, atomic_load_relaxed(&MaxEntriesCount),
atomic_load_relaxed(&MaxEntrySize));
for (CachedBlock Entry : Entries) {
+ if (!Entry.CommitBase)
+ continue;
Str->append("StartBlockAddress: 0x%zx, EndBlockAddress: 0x%zx, "
"BlockSize: %zu\n",
- Entry.CommitBase, (Entry.CommitBase + Entry.CommitSize),
+ Entry.CommitBase, Entry.CommitBase + Entry.CommitSize,
Entry.CommitSize);
}
}