Bug 1836607 Comment 38 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

This may be a case where the runnable should be going out of its way to drop references on the worker thread instead of assuming that it will be destroyed on the thread it ran on?  Like the interleaving might be:
- STS thread: We call dispatch on runnable R, yield control.
- Worker thread: completely runs the runnable R to completion and drops its refcount on R.
- STS thread: we resume control and drop our refcount on R, explosions.
This may be a case where the runnable should be going out of its way to drop references in its run method (on the worker thread) instead of assuming that it will be destroyed on the thread it ran on?  Like the interleaving might be:
- STS thread: We call dispatch on runnable R, yield control.
- Worker thread: completely runs the runnable R to completion and drops its refcount on R.
- STS thread: we resume control and drop our refcount on R, explosions.

Back to Bug 1836607 Comment 38