mirror of
https://github.com/Z3Prover/z3
synced 2025-04-23 09:05:31 +00:00
x64 clause allocator fix for del_clause
This commit is contained in:
parent
5b1cb49973
commit
b70cc47a9d
1 changed files with 5 additions and 0 deletions
|
@ -207,6 +207,11 @@ namespace sat {
|
|||
void clause_allocator::del_clause(clause * cls) {
|
||||
TRACE("sat", tout << "delete: " << cls->id() << " " << cls << " " << *cls << "\n";);
|
||||
m_id_gen.recycle(cls->id());
|
||||
#if defined(_AMD64_)
|
||||
#if defined(Z3DEBUG)
|
||||
m_last_seg_id2cls.remove(cls->id());
|
||||
#endif
|
||||
#endif
|
||||
size_t size = clause::get_obj_size(cls->m_capacity);
|
||||
cls->~clause();
|
||||
m_allocator.deallocate(size, cls);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue