mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-04 08:30:54 +00:00
fs_rom: revert workaround for possible livelock
The change "base: rm first-class support for static binaries" alleviates the need for the workaround.
This commit is contained in:
parent
db376bfddb
commit
ce414a5c5a
@ -495,19 +495,6 @@ class Fs_rom::Rom_root : public Root_component<Fs_rom::Rom_session_component>
|
|||||||
|
|
||||||
void Component::construct(Genode::Env &env)
|
void Component::construct(Genode::Env &env)
|
||||||
{
|
{
|
||||||
/*
|
|
||||||
* Print message to force the creation of the env LOG session, which would
|
|
||||||
* otherwise be created on the first (error) message. The latter becomes a
|
|
||||||
* problem when using the fs_rom as a provider for the env ROM sessions
|
|
||||||
* (like depot_rom in the sculpt scenario). Here, an error message printed
|
|
||||||
* in the synchronously called 'Rom_session::dataspace' RPC function may
|
|
||||||
* create a livelock on the attempt to obtain the LOG session.
|
|
||||||
*
|
|
||||||
* XXX This workaround can be removed with the eager creation of the
|
|
||||||
* the env log session.
|
|
||||||
*/
|
|
||||||
Genode::log("--- fs_rom ---");
|
|
||||||
|
|
||||||
static Genode::Sliced_heap sliced_heap(env.ram(), env.rm());
|
static Genode::Sliced_heap sliced_heap(env.ram(), env.rm());
|
||||||
static Fs_rom::Rom_root inst(env, sliced_heap);
|
static Fs_rom::Rom_root inst(env, sliced_heap);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user