You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When an actor creates a new future for a response it links itself to the resulting future. This creates two problems:
As seen in the example on StackOverflow, lots of exit messages can be sent on actor termination, and these messagse may never be cleared out of the receiving actor's queue
The links list on the actor expands with every link, and never shrinks back down
Fixing #2 should fix #1. I think #2 is really the bigger problem, because it means the links list can expand infinitely, and the because it is maintaining references to the "linked" channel so it can't be GC'd. That could be a big problem in there's some big objects in it.
So I think when the future is set the link needs to be removed.
The text was updated successfully, but these errors were encountered:
When an actor creates a new future for a response it links itself to the resulting future. This creates two problems:
Here's the question:
http://stackoverflow.com/questions/2321259/scala-2-8beta1-actor
Fixing #2 should fix #1. I think #2 is really the bigger problem, because it means the links list can expand infinitely, and the because it is maintaining references to the "linked" channel so it can't be GC'd. That could be a big problem in there's some big objects in it.
So I think when the future is set the link needs to be removed.
The text was updated successfully, but these errors were encountered: