+ /* Note by cheinrich: If you move this directly after the "new ActorImpl", the pid
+ * will not yet be set and you will cause issues when other code relies on that.
+ * This is of course also true for the other properties, so I moved this here.
+ */
+ simgrid::s4u::ActorPtr tmp = process->iface(); // Passing this directly to onCreation will lead to crashes
+ simgrid::s4u::Actor::onCreation(tmp);