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
{{ message }}
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.
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.
The text was updated successfully, but these errors were encountered:
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?
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
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
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.
The text was updated successfully, but these errors were encountered: