Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,12 @@ static int watcher_index_fn(const char *project_name, const char *root_path, voi

int rc = cbm_pipeline_run(p);
cbm_pipeline_free(p);
cbm_mem_collect(); /* #832: return mimalloc pages to OS after the in-process
* fallback re-index — mirrors the free()+collect() pairing at
* mcp.c:5758/pipeline.c:834. This is the watcher's unattended
* degrade path (supervisor off or spawn failed); without the
* collect, worker-thread pages mimalloc abandons at pool
* teardown are never returned, so RSS ratchets every poll. */
cbm_pipeline_unlock();
return rc;
}
Expand Down
Loading