mirror of
https://github.com/86Box/86Box.git
synced 2026-02-22 09:35:32 -07:00
Purge all codeblocks if running out of memory blocks except the one being recompiled
This commit is contained in:
@@ -115,11 +115,13 @@ codegen_allocator_allocate(mem_block_t *parent, int code_block)
|
||||
while (mem_code_block) {
|
||||
if (code_block != mem_code_block->number) {
|
||||
codegen_delete_block(&codeblock[mem_code_block->number]);
|
||||
if (mem_block_free_list)
|
||||
goto block_allocate;
|
||||
}
|
||||
mem_code_block = mem_code_block->next;
|
||||
}
|
||||
|
||||
if (mem_block_free_list)
|
||||
goto block_allocate;
|
||||
|
||||
fatal("Out of memory blocks!\n");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user