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

Do not make shared strings for extracted ranges #84

Merged
merged 1 commit into from
Jan 20, 2024

Conversation

headius
Copy link
Contributor

@headius headius commented Jan 20, 2024

Fixes #83

@headius headius merged commit 83e6b46 into ruby:master Jan 20, 2024
33 of 39 checks passed
@headius headius deleted the no_shared_strings branch January 20, 2024 22:21
headius added a commit to headius/jruby that referenced this pull request Jan 21, 2024
The issue arises when the `StringScanner` string is being modified
while being scanned. In such a case, that string's buffers will be
improperly shared, forcing a new buffer to be created each time it
is modified. Meanwhile the ever-growing buffers are held in memory
by the improperly shared return values.

This was fixed by ruby/strscan#84 and
strscan is updated in this PR.
headius added a commit to headius/jruby that referenced this pull request Jan 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant