Hacker News new | ask | show | jobs
by postultimate 1222 days ago
This one seems quite easy to fix - just have the scheduler check that task objects have a positive refcount before running them, including the first time.
1 comments

A positive refcount doesn't mean the object is not dead.
But the lack of a positive refcount means that it is, so this solves the problem the article was complaining about.
It works unless it doesn't, so it stays a Heisenbug.