Fix race condition in print tree (#28191)

This commit is contained in:
Christopher Batey 2019-11-20 16:58:52 +00:00 committed by GitHub
parent 1da15d99b8
commit ffde39c5c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1207,8 +1207,10 @@ private[akka] class ActorSystemImpl(
(if (indent.isEmpty) "-> " else indent.dropRight(1) + "⌊-> ") +
node.path.name + " " + Logging.simpleName(node) + " " +
(cell match {
case real: ActorCell => if (real.actor ne null) real.actor.getClass else "null"
case _ => Logging.simpleName(cell)
case real: ActorCell =>
val realActor = real.actor
if (realActor ne null) realActor.getClass else "null"
case _ => Logging.simpleName(cell)
}) +
(cell match {
case real: ActorCell => " status=" + real.mailbox.currentStatus