mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-18 18:56:29 +00:00
parent
b50d707d5b
commit
c76de84f0a
@ -147,7 +147,7 @@ append config {
|
||||
<resource name="RAM" quantum="2M"/>
|
||||
</start>
|
||||
<start name="decorator">
|
||||
<resource name="RAM" quantum="4M"/>
|
||||
<resource name="RAM" quantum="8M"/>
|
||||
<route>
|
||||
<service name="ROM">
|
||||
<if-arg key="label" value="pointer" />
|
||||
|
@ -108,8 +108,16 @@ struct Decorator::Main : Window_factory_base
|
||||
*/
|
||||
Window_base *create(Xml_node window_node) override
|
||||
{
|
||||
return new (env()->heap())
|
||||
Window(attribute(window_node, "id", 0UL), nitpicker, animator);
|
||||
for (unsigned retry = 0 ; retry < 2; retry ++) {
|
||||
try {
|
||||
return new (env()->heap())
|
||||
Window(attribute(window_node, "id", 0UL), nitpicker, animator);
|
||||
} catch (Nitpicker::Session::Out_of_metadata) {
|
||||
PINF("Handle Out_of_metadata of nitpicker session - upgrade by 8K");
|
||||
Genode::env()->parent()->upgrade(nitpicker.cap(), "ram_quota=8192");
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user