turbo-tasks-backend: stop dirtying dependents of GC-collected tasks (#99647)
### What? When GC collects a task, it removes each dependent's forward edge to it, as before, but no longer marks the dependent dirty. ### Why? The dirty never helps, the dependent task's previous execution is still valid. But it is also 'stale', no task should ever read it again, so providing a hint that it should be recomputed is harmful. Such a task is in a "dead but doesn't know it yet" state and so we can ignore it until its parent disconnects it. We still need to remove the edges so when the dependent is itself collected it doesn't panic because its dependencies have disappeared.
Showing
Please
register
or
sign in
to comment