mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-23 09:15:36 +00:00
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:
committed by
Christian Helmuth
parent
eea493a8ca
commit
6609aafb05
@ -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 {
|
||||
|
Reference in New Issue
Block a user