He-Pin commented on code in PR #1892: URL: https://github.com/apache/pekko/pull/1892#discussion_r2133793618
########## actor/src/main/scala/org/apache/pekko/actor/dungeon/Children.scala: ########## @@ -120,13 +120,13 @@ private[pekko] trait Children { this: ActorCell => refs.valuesIterator.foreach(_.stop()) } - @nowarn @volatile private var _nextNameDoNotCallMeDirectly = 0L + private val _nextName = new java.util.concurrent.AtomicLong() Review Comment: better go with AtomicLongFieldUpdater. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@pekko.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@pekko.apache.org For additional commands, e-mail: notifications-h...@pekko.apache.org