Skip to content

Conversation

@npmiller
Copy link
Contributor

@npmiller npmiller commented Mar 27, 2025

This patch fixes a couple static analysis issues with the recent async alloc patch:

  • Use std::move for shared pointer in CGAsyncAlloc constructor. It is already passed by-value to the constructor so we can just move it when assigning it to the member.
  • Assert that the queue is available in AsyncFree
  • Catch any exceptions from the memory pool destructor
  • Initialize AsyncAlloc fields in handler
  • Add [[maybe_unused]] for parameter only used in assert

@npmiller npmiller requested a review from a team as a code owner March 27, 2025 16:32
@npmiller npmiller requested a review from againull March 27, 2025 16:32
This patch fixes a couple static analysis issues with the recent async
alloc patch:

* Use `std::move` for shared pointer in `CGAsyncAlloc` constructor. It
  is already passed by-value to the constructor so we can just move it
  when assigning it to the member.
* Assert that the queue is available in `AsyncFree`
* Catch any exceptions from the memory pool destructor
* Initialize AsyncAlloc fields in handler
@npmiller
Copy link
Contributor Author

@intel/llvm-gatekeepers this should be ready to merge, the Jenkins/Precommit issue is unrelated and can be seen in other PRs

@sommerlukas sommerlukas merged commit a8d7f08 into intel:sycl Mar 31, 2025
32 of 35 checks passed
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