Changes between Version 1 and Version 2 of Ticket #1356, comment 3


Ignore:
Timestamp:
04/22/17 10:59:43 (7 years ago)
Author:
kristianlm
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #1356, comment 3

    v1 v2  
    1 After some thinking, I realize this bug-report should be the other way around. So my previous claim is wrong:
    2 
    3 {{{
    4 running the program below should output this:
    5 }}}
    6 
     1After some thinking, I realize this bug-report should be the other way around. Just like {{{sjamaan}}} mentioned on {{{#chicken}}}, he wasn't convinced about the correct behaviour. My original claim, {{{running the program below should output this:}}}, is wrong.
    72
    83The correct behaviour is that the thread and its REFERENCE gets garbage collected and the weak-reference returning {{{#f}}}. Because nobody is holding onto the condition-variable, the thread can never resume, and it can and should disappear from memory! This allows me to do cool things like [https://github.com/Adellica/chicken-gochan/blob/ea4e3f34f5090b61e4d34c451efacc13ec0bbafc/tests/thread-leak-test.scm this]!