From 23f4acfabcfb66d9ab157580cd1efd938cbd643d Mon Sep 17 00:00:00 2001 From: Christian Helmuth Date: Mon, 14 May 2018 17:21:03 +0200 Subject: [PATCH] Remove redundant calls to exec_static_constructors() --- repos/gems/src/server/cpu_sampler/main.cc | 3 --- repos/gems/src/test/text_painter/main.cc | 8 -------- 2 files changed, 11 deletions(-) diff --git a/repos/gems/src/server/cpu_sampler/main.cc b/repos/gems/src/server/cpu_sampler/main.cc index 68dbe9b26..50997ff45 100644 --- a/repos/gems/src/server/cpu_sampler/main.cc +++ b/repos/gems/src/server/cpu_sampler/main.cc @@ -196,8 +196,5 @@ struct Cpu_sampler::Main : Thread_list_change_handler void Component::construct(Genode::Env &env) { - /* XXX execute constructors of global statics (uses shared objects) */ - env.exec_static_constructors(); - static Cpu_sampler::Main inst(env); } diff --git a/repos/gems/src/test/text_painter/main.cc b/repos/gems/src/test/text_painter/main.cc index 48cf91e37..d4f2c2bd4 100644 --- a/repos/gems/src/test/text_painter/main.cc +++ b/repos/gems/src/test/text_painter/main.cc @@ -205,14 +205,6 @@ struct Test::Main void Component::construct(Genode::Env &env) { - /* - * The indirect dependency from libc (via ttf_font) introduces a global - * constructor in the binary. (typeinfo for 'Genode::Exception'). - * - * XXX Why is this ctors entry generated? - */ - env.exec_static_constructors(); - static Test::Main main(env); }