mirror of
https://github.com/asmjit/asmjit.git
synced 2025-12-17 12:34:35 +03:00
Fixed a possible bug that may trigger assertion failure in JitAllocator::alloc() due to not marking an empty block properly (#316)
This commit is contained in:
@@ -815,9 +815,9 @@ Error JitAllocator::release(void* ro) noexcept {
|
||||
}
|
||||
else {
|
||||
pool->emptyBlockCount++;
|
||||
block->largestUnusedArea = areaSize;
|
||||
block->largestUnusedArea = block->areaSize;
|
||||
block->searchStart = 0;
|
||||
block->searchEnd = areaSize;
|
||||
block->searchEnd = block->areaSize;
|
||||
block->addFlags(JitAllocatorBlock::kFlagEmpty);
|
||||
block->clearFlags(JitAllocatorBlock::kFlagDirty);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user