Replace Quota_exceeded by Insufficient_ram_quota

This patch replaces the 'Parent::Quota_exceeded',
'Service::Quota_exceeded', and 'Root::Quota_exceeded' exceptions
by the single 'Insufficient_ram_quota' exception type.

Furthermore, the 'Parent' interface distinguished now between
'Out_of_ram' (the child's RAM is exhausted) from
'Insufficient_ram_quota' (the child's RAM donation does not suffice to
establish the session).

This eliminates ambiguities and removes the need to convert exception
types along the path of the session creation.

Issue #2398
This commit is contained in:
Norman Feske
2017-05-08 14:32:03 +02:00
committed by Christian Helmuth
parent eea493a8ca
commit 6609aafb05
55 changed files with 135 additions and 134 deletions

View File

@ -395,7 +395,7 @@ class File_system::Root : public Root_component<Session_component>
if (max((size_t)4096, session_size) > ram_quota) {
Genode::error("insufficient 'ram_quota', "
"got ", ram_quota, ", need ", session_size);
throw Root::Quota_exceeded();
throw Insufficient_ram_quota();
}
try {