Skip to content

[DeviceSanitizer] Fix private base leak and reuse private base if possiblem #19038

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: sycl
Choose a base branch
from

Conversation

yingcong-wu
Copy link
Contributor

@yingcong-wu yingcong-wu commented Jun 18, 2025

Bug1: Leak, when private sahdow failed to allocate, the already allocated private base would not be freed.
Bug2: Leak, the old private base is never freed.
Improve: try to reuse private base just like we try to reuse private shadow.

@yingcong-wu yingcong-wu requested a review from a team as a code owner June 18, 2025 09:03
@yingcong-wu yingcong-wu requested a review from a team June 18, 2025 09:03
@yingcong-wu yingcong-wu changed the title fix leak [DeviceSanitizer] Fix private base leak and reuse private base if possiblem Jun 18, 2025
/**
* A RAII helper to run callback when destructing, useful for clean up resources
*/
struct ScopeGuard {
Copy link
Contributor

Choose a reason for hiding this comment

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

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.

2 participants