Skip to content

Commit

Permalink
Merge pull request #18027 from unknownbrackets/memblockinfo
Browse files Browse the repository at this point in the history
Debugger: Reduce cost of small copy tracking
  • Loading branch information
hrydgard committed Aug 31, 2023
2 parents f02f638 + d5c91fa commit 7a3eab9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Core/Debugger/MemBlockInfo.cpp
Expand Up @@ -57,7 +57,7 @@ class MemSlabMap {
};

static constexpr uint32_t MAX_SIZE = 0x40000000;
static constexpr uint32_t SLICES = 16384;
static constexpr uint32_t SLICES = 65536;
static constexpr uint32_t SLICE_SIZE = MAX_SIZE / SLICES;

Slab *FindSlab(uint32_t addr);
Expand Down Expand Up @@ -371,7 +371,7 @@ void MemSlabMap::FillHeads(Slab *slab) {

void FlushPendingMemInfo() {
std::lock_guard<std::mutex> guard(pendingMutex);
for (auto info : pendingNotifies) {
for (const auto &info : pendingNotifies) {
if (info.flags & MemBlockFlags::ALLOC) {
allocMap.Mark(info.start, info.size, info.ticks, info.pc, true, info.tag);
} else if (info.flags & MemBlockFlags::FREE) {
Expand Down

0 comments on commit 7a3eab9

Please sign in to comment.