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

extensions/amd: Remove unnecessary CString allocations in fn load #533

Merged
merged 2 commits into from
Dec 28, 2021

Conversation

MarijnS95
Copy link
Collaborator

Following the changes in a053c6a ("Remove unnecessary CString allocation when loading functions (#379)") this addresses the remainder of string allocations in manual extension loading code.

Following the changes in a053c6a ("Remove unnecessary CString allocation
when loading functions (#379)") this addresses the remainder of string
allocations in manual extension loading code.
These allocations and runtime assertions can all be replaced with a
`CStr` directly wrapping a binary-string literal, as long as it is
null-terminated.
@Ralith Ralith merged commit afdab86 into master Dec 28, 2021
@MarijnS95 MarijnS95 deleted the amd-cstr branch December 28, 2021 18:37
MarijnS95 added a commit that referenced this pull request Jan 3, 2022
Ralith pushed a commit that referenced this pull request Jan 3, 2022
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