gems: let run decorator-stress on 64bit

Fixes #1247
This commit is contained in:
Alexander Boettcher 2015-03-13 12:20:34 +01:00 committed by Christian Helmuth
parent b50d707d5b
commit c76de84f0a
2 changed files with 11 additions and 3 deletions

View File

@ -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" />

View File

@ -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;
}
/**