Fix the destruction proxy blocks in DestroyBlock() in JitBlockCache.cpp.

Prior to this, it was possible for the wrong block to be deleted multiple times.
This commit is contained in:
lioncash committed 2014-02-03 14:40:37 -05:00
1 parent 6f389365d0
commit aaf834c032
1 file changed
+1 -1
+1 -1
View File
@@ -436,7 +436,7 @@ void JitBlockCache::DestroyBlock(int block_num, bool invalidate) {
// this block or its 'parent', so now that this block has changed, the root block must be destroyed.
for (size_t i = 0; i < b->proxyFor.size(); i++) {
int proxied_blocknum = GetBlockNumberFromStartAddress(b->proxyFor[i], false);
DestroyBlock(block_num, invalidate);
DestroyBlock(proxied_blocknum, invalidate);
}
b->proxyFor.clear();
// TODO: Remove from proxyBlockIndices_.