Skip to content
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

Clarify that "sycl::free(nullptr)" does nothing #593

Merged
merged 1 commit into from
Jul 25, 2024

Conversation

gmlueck
Copy link
Contributor

@gmlueck gmlueck commented Jul 24, 2024

The std::free function allows its parameter to be null, in which case it has no effect. I assume we want the same behavior for sycl::free.

The `std::free` function allows its parameter to be null, in which case
it has no effect.  I assume we want the same behavior for `sycl::free`.
Copy link
Member

@keryell keryell left a comment

Choose a reason for hiding this comment

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

Let's start 1 year of discussions on this one about C compatibility... ;-)

@tomdeakin tomdeakin merged commit fdac511 into KhronosGroup:SYCL-2020/master Jul 25, 2024
2 checks passed
@gmlueck gmlueck deleted the gmlueck/free-null branch July 25, 2024 20:17
keryell pushed a commit that referenced this pull request Sep 10, 2024
Clarify that "sycl::free(nullptr)" does nothing
gmlueck pushed a commit that referenced this pull request Nov 7, 2024
Clarify that "sycl::free(nullptr)" does nothing

(cherry picked from commit fdac511)
gmlueck pushed a commit that referenced this pull request Nov 7, 2024
Clarify that "sycl::free(nullptr)" does nothing

(cherry picked from commit fdac511)
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.

5 participants