Skip to content

chunks: Allow weak Chunk references in Thunk args #364

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 10, 2022
Merged

Conversation

jpsamaroo
Copy link
Member

Through the scheduler, a task also retains its inputs through entries in state.cache; this is fine for tasks which references other tasks, because we have a WeakThunk mechanic to allow those input tasks to be freed when unneeded. However, this didn't apply to Chunk objects. This is a simple fix which implements a WeakChunk mechanic in the same way, which allows Chunk inputs to a completed task to be freed.

Implement WeakChunk like WeakThunk
Swap Chunk for WeakChunk in eager thunk submission
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant