Skip to content

Fix leaks from not freeing status in tests - #5973

Merged
GMNGeoffrey merged 2 commits into
iree-org:mainfrom
GMNGeoffrey:leak-cleanup
May 21, 2021
Merged

GMNGeoffrey merged 2 commits into
iree-org:mainfrom
GMNGeoffrey:leak-cleanup

Conversation

@GMNGeoffrey

@GMNGeoffrey GMNGeoffrey commented May 21, 2021 •

Copy link
Copy Markdown
Member

Part of #5715

@google-cla google-cla Bot added the cla: yes label May 21, 2021
@GMNGeoffrey
GMNGeoffrey requested a review from ScottTodd May 21, 2021 01:16
@GMNGeoffrey
GMNGeoffrey enabled auto-merge (squash) May 21, 2021 01:17
&wait_set));
iree_status_t status = iree_wait_set_allocate(
1 * 1024 * 1024, iree_allocator_system(), &wait_set);
IREE_EXPECT_STATUS_IS(IREE_STATUS_INVALID_ARGUMENT, status);

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Do we have any cases where we don't want to free a status after IREE_EXPECT_STATUS_IS? Could create a IREE_EXPECT_STATUS_IS_AND_FREE :P

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yeah I thought about that. The other thing I was thinking was that it should be possible to free rvalues only. I didn't go to deep into it though, since this was simple and Ben was saying that he was going to do something to make this better with a C++ RAII wrapper or something

@GMNGeoffrey
GMNGeoffrey merged commit 73a3058 into iree-org:main May 21, 2021
@GMNGeoffrey
GMNGeoffrey deleted the leak-cleanup branch May 21, 2021 14:44
@hanhanW hanhanW mentioned this pull request May 21, 2021
hanhanW pushed a commit to hanhanW/iree that referenced this pull request May 21, 2021
hanhanW pushed a commit to hanhanW/iree that referenced this pull request May 21, 2021
This was referenced May 21, 2021
copybara-service Bot pushed a commit that referenced this pull request May 21, 2021
* 50f3b8f Fix ordering of inlined operations to ignore ops that are not inlined. (#5979)
* 4287062 Integrate MLIR-EmitC at iml130/mlir-emitc@648145e5 (#5977)
* 995fdc9 Use nvidia deb files that we control (#5967)
* 73a3058 Fix leaks from not freeing status in tests (#5973)
* 114e200 Fix vulkan dynamic library name for MacOS (#5974)
* 74be687 [Cleanup] Refactor BUILD file. (#5972)
* 82afa23 [CUDA-Codegen] Add support for constant tensor (#5966)
* 5c5b549 Update workflows to use new token (#5968)
* b154cd9 Fix tracking of result buffer to use if the buffer eventually maps to low disp..
* c74cb11 Merge google -> main (#5965)

COPYBARA_INTEGRATE_REVIEW=#5985 from hanhanW:main-to-google ce6f1e7
PiperOrigin-RevId: 375167936
iree-github-actions-bot pushed a commit that referenced this pull request May 21, 2021
* 50f3b8f Fix ordering of inlined operations to ignore ops that are not inlined. (#5979)
* 4287062 Integrate MLIR-EmitC at iml130/mlir-emitc@648145e5 (#5977)
* 995fdc9 Use nvidia deb files that we control (#5967)
* 73a3058 Fix leaks from not freeing status in tests (#5973)
* 114e200 Fix vulkan dynamic library name for MacOS (#5974)
* 74be687 [Cleanup] Refactor BUILD file. (#5972)
* 82afa23 [CUDA-Codegen] Add support for constant tensor (#5966)
* 5c5b549 Update workflows to use new token (#5968)
* b154cd9 Fix tracking of result buffer to use if the buffer eventually maps to low disp..
* c74cb11 Merge google -> main (#5965)

PiperOrigin-RevId: 375167936
@GMNGeoffrey GMNGeoffrey added the infrastructure Relating to build systems, CI, or testing label Aug 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infrastructure Relating to build systems, CI, or testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants