mirror of
https://github.com/Atmosphere-NX/Atmosphere-libs.git
synced 2025-06-30 06:52:39 +02:00
lmem: fix assert with side effects
This commit is contained in:
parent
c68298a00e
commit
28edc0ca8f
@ -462,7 +462,11 @@ namespace ams::lmem::impl {
|
|||||||
/* Erase the heap from the used list, and coalesce it with adjacent blocks. */
|
/* Erase the heap from the used list, and coalesce it with adjacent blocks. */
|
||||||
GetMemoryBlockRegion(®ion, block);
|
GetMemoryBlockRegion(®ion, block);
|
||||||
exp_heap_head->used_list.erase(exp_heap_head->used_list.iterator_to(*block));
|
exp_heap_head->used_list.erase(exp_heap_head->used_list.iterator_to(*block));
|
||||||
AMS_ASSERT(CoalesceFreedRegion(exp_heap_head, ®ion));
|
|
||||||
|
/* Coalesce with adjacent blocks. */
|
||||||
|
const bool coalesced = CoalesceFreedRegion(exp_heap_head, ®ion);
|
||||||
|
AMS_ASSERT(coalesced);
|
||||||
|
AMS_UNUSED(coalesced);
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t ResizeExpHeapMemoryBlock(HeapHandle handle, void *mem_block, size_t size) {
|
size_t ResizeExpHeapMemoryBlock(HeapHandle handle, void *mem_block, size_t size) {
|
||||||
|
Loading…
Reference in New Issue
Block a user