mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-04-11 20:28:59 +02:00
[heap_tracker] fix map ordering violations
Signed-off-by: lizzie <lizzie@eden-emu.dev>
This commit is contained in:
parent
4b5a8e0621
commit
7b89530528
2 changed files with 7 additions and 6 deletions
|
|
@ -168,8 +168,7 @@ void HeapTracker::SplitHeapMap(VAddr offset, size_t size) {
|
|||
}
|
||||
|
||||
void HeapTracker::SplitHeapMapLocked(VAddr offset) {
|
||||
auto it = this->GetNearestHeapMapLocked(offset);
|
||||
if (it != m_mappings.end() && it->first != offset) {
|
||||
if (auto it = this->GetNearestHeapMapLocked(offset); it != m_mappings.end() && it->first != offset) {
|
||||
// Adjust left iterator
|
||||
auto const orig_size = it->second.size;
|
||||
auto const left_size = offset - it->first;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue