Skip to content

Commit

Permalink
mark stop() method as noinline (#1485)
Browse files Browse the repository at this point in the history
* mark stop() method as noinline

* Update Dispatch.scala
  • Loading branch information
pjfanning authored Sep 25, 2024
1 parent 78d6f17 commit f24e436
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,9 @@ private[pekko] trait Dispatch { this: ActorCell =>
catch handleException

// ➡➡➡ NEVER SEND THE SAME SYSTEM MESSAGE OBJECT TO TWO ACTORS ⬅⬅⬅
final def stop(): Unit =
// this function is marked `noinline` because Kamon and other metrics libraries
// instrument this function
@noinline final def stop(): Unit =
try dispatcher.systemDispatch(this, Terminate())
catch handleException

Expand Down

0 comments on commit f24e436

Please sign in to comment.