Skip to content

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

Merged
rwgk merged 6 commits into
pybind:smart_holderfrom
rwgk:sh_reclaim_ownership
Apr 10, 2021
Merged

Adding reclaim_disowned logic & miscellaneous naming and documentation improvements.#2943
rwgk merged 6 commits into
pybind:smart_holderfrom
rwgk:sh_reclaim_ownership

Conversation

@rwgk

@rwgkrwgk commented Apr 10, 2021

Copy link
Copy Markdown
Collaborator

No description provided.

@rwgk

rwgk commented Apr 10, 2021

Copy link
Copy Markdown
CollaboratorAuthor

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_holderApr 10, 2021
@rwgk
rwgk deleted the sh_reclaim_ownership branch April 10, 2021 06:08
@github-actionsgithub-actionsBot added the needs changelog Possibly needs a changelog entry label Apr 10, 2021
@rwgkrwgk 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 <rwgk@google.com>
PiperOrigin-RevId: 367880386
@EricCousineau-TRIEricCousineau-TRI added the smart holder See: https://github.com/pybind/pybind11/blob/smart_holder/README_smart_holder.rst label Apr 26, 2021
@rwgkrwgk mentioned this pull request Feb 10, 2023
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

smart holderSee: 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

@rwgk@EricCousineau-TRI