Hi all- Is this (the whole thread, starting with Rick’s question 29March2015) so important that it should be updated in the original stackoverflow thread?
- Or in some way added to golang-nuts, or better golang-dev?
- If not, is there a place where it could be posted?
- If so, should it be anonymized or edited?
- Or is it already on some Occam Family open thread (or else) out there?
- Or is this news to us only, and the Go people are content with their present solution?
- An easy solution could be to make a pdf of it and place it somewhere, and then refer this somewehere?
- Any other question in need of an answer?
Øyvind
Hi, version 1.4.2 does not help; in fact the effect is even worse.
I am developing the code using Eclipse with the plugin goclipse in a Windows 7 system (my normal system)
When I ran my code it started and produced some output, albeit slowly. It then stopped and caused my PC to hang such that Cntrl-Alt-Del did not work and I had to resort to switching off the PC using the power switch!!
Jon
Professor Jon Kerridge School of Computing Edinburgh Napier University Merchiston Campus Edinburgh EH10 5DT 0131 455 2777
That is my experience!!
I shall now try the latest 1.4 release of the language to see if there have been any changes to the run time to get rid of the problem I found.
I will let you know Jon
Professor Jon Kerridge School of Computing Edinburgh Napier University Merchiston Campus Edinburgh EH10 5DT 0131 455 2777
So the memory leak is, arguably, correct behaviour then?
Roger
There is no such thing as a goroutine going out of scope, there's no process hierarchy. It's spawned in a flat tree and will continue to block indefinitely. Yes it would be possible for the garbage collector to determine that a channel send could never succeed on that channel but the semantics of what to do after that are very difficult to specify.
- Jim On Sun, 29 Mar 2015 at 22:19 Roger Shepherd < rog@xxxxxxxx> wrote:
Hi Roger,
see notes inserted below...
In the example, isn't it the case that with the zero-buffered channel the channel and the grouting go out of scope and should be garbage collected? So there is a bug, as the Stack Overflow post suggests.
Roger
|