From fdd2b4edb00b08982c61182e5d57cb89c30e7082 Mon Sep 17 00:00:00 2001 From: Norman Feske Date: Tue, 5 Nov 2024 11:13:33 +0100 Subject: [PATCH] sculpt: restart depot_rom on use/unuse Large deployments (e.g., using the Falkon browser) can significantly inflate the RAM quota of depot_rom. When switching the Sculpt storage target (using the "Use" buttons), depot_rom is restarted. Right now, however, it retains its (inflated) quota. It is better to reset the quota to its initial value to free up RAM that thereby becomes usable for a different deployment. Otherwise, the depot_rom's resources can be deflated only by rebooting. --- repos/gems/src/app/sculpt_manager/deploy.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/repos/gems/src/app/sculpt_manager/deploy.h b/repos/gems/src/app/sculpt_manager/deploy.h index 2db79f9e49..5ec2326dc7 100644 --- a/repos/gems/src/app/sculpt_manager/deploy.h +++ b/repos/gems/src/app/sculpt_manager/deploy.h @@ -263,6 +263,9 @@ struct Sculpt::Deploy void restart() { + cached_depot_rom_state .trigger_restart(); + uncached_depot_rom_state.trigger_restart(); + /* ignore stale query results */ _depot_query.trigger_depot_query();