I’m trying to prove two simple facts about how Ruby works:
- Ruby can GC a Thread that has run to completion if you no longer
have any references to it, even if the value() have never been collected
- Ruby cannot GC a running Thread, even if there are no references to it
Some new code I have relies on these truths. Simple scripts I’ve
written seems to indicate they are accurate, but I would love to hear
from someone who knows these to be true, or untrue.
Thanks in advance for any information you can provide.
James Edward G. II