-
Notifications
You must be signed in to change notification settings - Fork 25.7k
Prevent using anything other than intrusive_ptr for Future #58421
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
Conversation
Here I make it impossible to create Futures that do not use intrusive_ptr, by making the constructor private. This makes it safer (by "forcing" people to do the right thing) and prevents a proliferation of new shared_ptrs or of accidental copies/moves. Differential Revision: [D28474484](https://our.internmc.facebook.com/intern/diff/D28474484/) [ghstack-poisoned]
💊 CI failures summary and remediationsAs of commit 07acc3b (more details on the Dr. CI page):
🕵️ 1 new failure recognized by patternsThe following CI failures do not appear to be due to upstream breakages:
|
Here I make it impossible to create Futures that do not use intrusive_ptr, by making the constructor private. This makes it safer (by "forcing" people to do the right thing) and prevents a proliferation of new shared_ptrs or of accidental copies/moves. Differential Revision: [D28474484](https://our.internmc.facebook.com/intern/diff/D28474484/) [ghstack-poisoned]
Here I make it impossible to create Futures that do not use intrusive_ptr, by making the constructor private. This makes it safer (by "forcing" people to do the right thing) and prevents a proliferation of new shared_ptrs or of accidental copies/moves. Differential Revision: [D28474484](https://our.internmc.facebook.com/intern/diff/D28474484/) [ghstack-poisoned]
Here I make it impossible to create Futures that do not use intrusive_ptr, by making the constructor private. This makes it safer (by "forcing" people to do the right thing) and prevents a proliferation of new shared_ptrs or of accidental copies/moves. Differential Revision: [D28474484](https://our.internmc.facebook.com/intern/diff/D28474484/) [ghstack-poisoned]
Here I make it impossible to create Futures that do not use intrusive_ptr, by making the constructor private. This makes it safer (by "forcing" people to do the right thing) and prevents a proliferation of new shared_ptrs or of accidental copies/moves. Differential Revision: [D28474484](https://our.internmc.facebook.com/intern/diff/D28474484/) [ghstack-poisoned]
Here I make it impossible to create Futures that do not use intrusive_ptr, by making the constructor private. This makes it safer (by "forcing" people to do the right thing) and prevents a proliferation of new shared_ptrs or of accidental copies/moves. Differential Revision: [D28474484](https://our.internmc.facebook.com/intern/diff/D28474484/) [ghstack-poisoned]
Pull Request resolved: pytorch#58421 Here I make it impossible to create Futures that do not use intrusive_ptr, by making the constructor private. This makes it safer (by "forcing" people to do the right thing) and prevents a proliferation of new shared_ptrs or of accidental copies/moves. ghstack-source-id: 129567047 Differential Revision: [D28474484](https://our.internmc.facebook.com/intern/diff/D28474484/)
|
This pull request has been merged in 35ea877. |
Stack from ghstack:
Here I make it impossible to create Futures that do not use intrusive_ptr, by making the constructor private. This makes it safer (by "forcing" people to do the right thing) and prevents a proliferation of new shared_ptrs or of accidental copies/moves.
Differential Revision: D28474484