Skip to content

Adding reclaim_disowned logic & miscellaneous naming and documentation improvements. #2943

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 6 commits into from
Apr 10, 2021

Conversation

rwgk
Copy link
Collaborator

@rwgk rwgk commented Apr 10, 2021

No description provided.

@rwgk
Copy link
Collaborator Author

rwgk commented Apr 10, 2021

The CI is green, also with PYBIND11_USE_SMART_HOLDER_AS_DEFAULT (#2879), except for one notorious flake. This change will get reviewed Google-internally. Merging. I'll open a new PR if there are requests for changes.

@EricCousineau-TRI, @elkhrt, @rhaschke: This PR renames py::virtual_overrider_life_support to py::trampoline_life_support. The new name connects much better to the existing documentation. I figured it's still early enough to make this change. I hope the adjustments needed on your side are still really quick.

@rwgk rwgk merged commit 6c92261 into pybind:smart_holder Apr 10, 2021
@rwgk rwgk deleted the sh_reclaim_ownership branch April 10, 2021 06:08
@github-actions github-actions bot added the needs changelog Possibly needs a changelog entry label Apr 10, 2021
@rwgk rwgk removed the needs changelog Possibly needs a changelog entry label Apr 10, 2021
rwgk added a commit to google/clif that referenced this pull request Apr 12, 2021
pybind/pybind11#2943

This PR was not reviewed on github, please review here. If there are requests for changes I will address them in a new PR.

The main change is to add `reclaim_disowned` logic related to trampolines and `std::unique_ptr` (smart_holder_type_casters.h, smart_holder_poc.h, trampoline_self_life_support.h).

A new section is added to README_smart_holder.rst: Trampolines and std::unique_ptr

`py::virtual_overrider_self_life_support` is renamed to `py::trampoline_self_life_support`, to better connect to the existing documentation. third_party/clif/pybind11/generator.py is adjusted accordingly.

All other changes are pure renaming to make the code a little easier to navigate.

Regarding TGP: The 4 targets marked Newly Broken were inspected manually. The failures are unrelated to this CL.

TESTED=TPG (http://tap/OCL:367756875:BASE:367778561:1618053415251:42db1e5c)

Import pybind/pybind11 from GitHub.

  - 6c922614ed68dbcff6c8ee00a47550e00921533d Adding reclaim_disowned logic & miscellaneous naming and ... by Ralf W. Grosse-Kunstleve <[email protected]>

PiperOrigin-RevId: 367880386
@EricCousineau-TRI EricCousineau-TRI added the smart holder See: https://github.com/pybind/pybind11/blob/smart_holder/README_smart_holder.rst label Apr 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
smart holder See: https://github.com/pybind/pybind11/blob/smart_holder/README_smart_holder.rst
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants