wip: collect at all per-job thread exits

Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
This commit is contained in:
Martin Vogel
2026-07-25 17:09:31 +02:00
parent 3d0d056464
commit 249e316efc
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -1602,6 +1602,10 @@ static void *application_job_thread(void *opaque) {
}
}
application_job_publish(job, &execution);
/* Same reasoning as the connection worker: hand this thread's allocator
* pages back while it still owns them, since abandoned pages are not
* reclaimed in practice (#581). */
cbm_mem_collect();
return NULL;
}
+4
View File
@@ -1248,6 +1248,10 @@ static void *runtime_application_worker(void *opaque) {
if (!sent && !atomic_load_explicit(&worker->disconnecting, memory_order_acquire)) {
cbm_daemon_ipc_connection_interrupt(worker->connection);
}
/* Same reasoning as the connection worker: hand this thread's allocator
* pages back while it still owns them, since abandoned pages are not
* reclaimed in practice (#581). */
cbm_mem_collect();
return NULL;
}