Skip to content

[vulkan] Fix SPIR-V IR references causing leaks#7739

Merged
steven-johnson merged 2 commits intomainfrom
dg/fix_spirv_parent_refs
Aug 7, 2023
Merged

[vulkan] Fix SPIR-V IR references causing leaks#7739
steven-johnson merged 2 commits intomainfrom
dg/fix_spirv_parent_refs

Conversation

@derek-gerstmann
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

Thanks so much for this! LGTM pending green.

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

@abadams
Copy link
Copy Markdown
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
Copy Markdown
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 <dgerstmann@adobe.com>
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.

3 participants