Add debug of strange crash.

GitOrigin-RevId: 401595954e851fe315253aa9221eaaea50783245
This commit is contained in:
levlam 2018-07-17 00:38:06 +03:00
parent 7e71d12423
commit 455622da65

View File

@ -115,7 +115,8 @@ inline ActorId<> Actor::actor_id() {
}
template <class SelfT>
ActorId<SelfT> Actor::actor_id(SelfT *self) {
CHECK(static_cast<Actor *>(self) == this);
CHECK(static_cast<Actor *>(self) == this)
<< self << " " << static_cast<Actor *>(self) << " " << this << " " << empty();
return ActorId<SelfT>(info_.get_weak());
}
@ -124,7 +125,8 @@ inline ActorShared<> Actor::actor_shared() {
}
template <class SelfT>
ActorShared<SelfT> Actor::actor_shared(SelfT *self, uint64 id) {
CHECK(static_cast<Actor *>(self) == this);
CHECK(static_cast<Actor *>(self) == this)
<< self << " " << static_cast<Actor *>(self) << " " << this << " " << empty();
return ActorShared<SelfT>(actor_id(self), id);
}