Skip to content

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

Merged
Ralith merged 2 commits intomasterfrom
amd-cstr
Dec 28, 2021
Merged

extensions/amd: Remove unnecessary CString allocations in fn load#533
Ralith merged 2 commits intomasterfrom
amd-cstr

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