LLVM: Add explicit resource-freeing at emulation stop

This commit is contained in:
Elad
2025-01-21 13:27:10 +02:00
parent a24e747e16
commit 81d0dd686b
4 changed files with 44 additions and 0 deletions
+19
View File
@@ -3736,6 +3736,25 @@ namespace
bucket.map.erase(found);
}
jit_module_manager& operator=(thread_state s) noexcept
{
if (s == thread_state::destroying_context)
{
for (auto& buck : buckets)
{
for (auto& mod : buck.map)
{
for (auto& jit : mod.second.pjit)
{
*jit = s;
}
}
}
}
return *this;
}
};
}
#endif