Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Objects, and Promises should not continue to take up memory. (i.e. Need Garbage Collection) #25

Open
mjstahl opened this issue Feb 25, 2013 · 2 comments

Comments

@mjstahl
Copy link
Owner

mjstahl commented Feb 25, 2013

Currently there is no means of garbage collection of objects (or promises). A reference counting system eventually has to be added so that objects and promises that leave scope are sent a "die" message so that the goroutine ends.

@ghost ghost assigned mjstahl Feb 25, 2013
@mjstahl
Copy link
Owner Author

mjstahl commented Mar 5, 2013

A thought for right now.

First off every Value needs a kill channel. Upon receiving a value from this channel, the for loop will be broken, ending the goroutine (and eventually being collected by golang's GC)

But how do we determine determine what needs to be killed?

@mjstahl
Copy link
Owner Author

mjstahl commented Sep 28, 2013

A simple reference counting mechanism may be all that is needed (we will have to handle cyclical dependencies at a later date). This would also have to be compensated for when doing distributed message passing, as a remote machine may have a reference to a local object (i.e. we don't want to be too aggressive with cleaning up the goroutines).

@mjstahl mjstahl changed the title Objects, and Promises no longer needed will continue to take up memory. (i.e. Need Garbage Collection) Objects, and Promises should not continue to take up memory. (i.e. Need Garbage Collection) Aug 19, 2014
@mjstahl mjstahl removed their assignment Jul 21, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant