-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Add pending task dependencies to active object IDs #6054
Conversation
Can one of the admins verify this patch? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we keep track of the dependencies from the worker instead and pass it along with the current active object IDs? That way we can reuse that logic when we implement ref counting.
Test FAILed. |
3fe80c7
to
22032d0
Compare
Test FAILed. |
Test FAILed. |
Test FAILed. |
Test FAILed. |
Test FAILed. |
Test FAILed. |
Test FAILed. |
Test FAILed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! I like the new class :)
Is there a way we can also check that the reference counter is empty after a non-actor task completes?
} | ||
|
||
void ReferenceCounter::SetDependencies( | ||
const ObjectID &object_id, std::shared_ptr<std::vector<ObjectID>> dependencies) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why shared_ptr instead of unique_ptr or &&
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These can be shared among multiple entries - we set the same dependencies for all return values for functions that have multiple returns.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see, can you add a comment about that in the header?
Test FAILed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
Test FAILed. |
Test FAILed. |
Test PASSed. |
Why are these changes needed?
Part of the stop-gap GC solution.
Related issue number
Checks
scripts/format.sh
to lint the changes in this PR.