Skip to content

Actor links being maintained on set futures #3102

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
scabug opened this issue Feb 24, 2010 · 2 comments
Closed

Actor links being maintained on set futures #3102

scabug opened this issue Feb 24, 2010 · 2 comments
Assignees

Comments

@scabug
Copy link

scabug commented Feb 24, 2010

When an actor creates a new future for a response it links itself to the resulting future. This creates two problems:

  1. 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
  2. The links list on the actor expands with every link, and never shrinks back down

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.

@scabug
Copy link
Author

scabug commented Feb 24, 2010

Imported From: https://issues.scala-lang.org/browse/SI-3102?orig=1
Reporter: @eengbrec

@scabug
Copy link
Author

scabug commented Mar 8, 2010

@phaller said:
(In r21108) Closes #3102.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants