mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-18 13:26:27 +00:00
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.
This commit is contained in:
parent
8d50d320e2
commit
fdd2b4edb0
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user