chore: revert "perf: avoid taking mutex on task deactivation" (#7590)

Likely introduced segfaults.

Reverts leanprover/lean4#7572
This commit is contained in:
Sebastian Ullrich 2025-03-20 08:04:50 +01:00 committed by GitHub
parent 160ca476a1
commit f42a28f718
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -926,12 +926,6 @@ public:
}
void deactivate_task(lean_task_object * t) {
if (object * v = t->m_value) {
lean_assert(t->m_imp == nullptr);
lean_dec(v);
free_task(t);
return;
}
unique_lock<mutex> lock(m_mutex);
if (object * v = t->m_value) {
lean_assert(t->m_imp == nullptr);