Skip to content

Pass the offset and length to Loader#bytesToName to avoid an extra copy#4047

Merged
eregon merged 1 commit intoruby:mainfrom
eregon:bytesToName-with-offset-and-length
Mar 26, 2026
Merged

Pass the offset and length to Loader#bytesToName to avoid an extra copy#4047
eregon merged 1 commit intoruby:mainfrom
eregon:bytesToName-with-offset-and-length

Conversation

@eregon
Copy link
Copy Markdown
Member

@eregon eregon commented Mar 26, 2026

Used in the last commit of truffleruby/truffleruby#4202

Copy link
Copy Markdown
Collaborator

@kddnewton kddnewton left a comment

Choose a reason for hiding this comment

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

Seems fine to me. @enebo / @headius?

Copy link
Copy Markdown
Contributor

@headius headius left a comment

Choose a reason for hiding this comment

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

Looks fine to me. Only used internally for populating identifiers so should not have any impact on JRuby's use.

@eregon eregon merged commit 40ca8a4 into ruby:main Mar 26, 2026
68 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.

3 participants