Skip to content

Update strscan to fix improper sharing#8074

Merged
headius merged 1 commit intojruby:masterfrom
headius:strscan_update
Jan 21, 2024
Merged

Update strscan to fix improper sharing#8074
headius merged 1 commit intojruby:masterfrom
headius:strscan_update

Conversation

@headius
Copy link
Member

@headius headius commented 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.

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 headius added this to the JRuby 9.4.6.0 milestone Jan 21, 2024
@headius headius merged commit 7609e7b into jruby:master Jan 21, 2024
@headius headius deleted the strscan_update branch January 21, 2024 20:00
@headius headius restored the strscan_update branch February 6, 2024 16:58
@headius headius deleted the strscan_update branch February 6, 2024 16:59
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.

1 participant