Skip to content

Conversation

@derek-gerstmann
Copy link
Contributor

Removed parent/owner back references (which weren't actually needed)
Fixed ownership transfers
Explicitly destruct and clear contents

Derek Gerstmann added 2 commits August 3, 2023 12:53
Copy link
Contributor

@steven-johnson steven-johnson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks so much for this! LGTM pending green.

@derek-gerstmann
Copy link
Contributor Author

Thanks so much for this! LGTM pending green.

Thanks for finding these! The ASAN toolchain is a massive help!

@abadams
Copy link
Member

abadams commented Aug 4, 2023

I believe after this PR and the memoize fix one (which is still failing on windows, unfortunately), that's all the leaks.

@steven-johnson
Copy link
Contributor

I believe after this PR and the memoize fix one (which is still failing on windows, unfortunately), that's all the leaks.

Sweet! LMK how the Windows issues go.

@steven-johnson steven-johnson merged commit 150a930 into main Aug 7, 2023
@steven-johnson steven-johnson deleted the dg/fix_spirv_parent_refs branch August 7, 2023 19:30
ardier pushed a commit to ardier/Halide-mutation that referenced this pull request Mar 3, 2024
* Remove unnecessary parent refs and owning function/block refs.
Add explicit clear methods for contents structs and destructors.

* Move objects when changing ownership

---------

Co-authored-by: Derek Gerstmann <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants