Skip to content

Comments

[pull] master from ruby:master#395

Merged
pull[bot] merged 4 commits intoturkdevops:masterfrom
ruby:master
Oct 25, 2025
Merged

[pull] master from ruby:master#395
pull[bot] merged 4 commits intoturkdevops:masterfrom
ruby:master

Conversation

@pull
Copy link

@pull pull bot commented Oct 25, 2025

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

aidenfoxivey and others added 4 commits October 24, 2025 21:03
When the fallback function in transcode_loop raises, it will leak the memory
in rb_econv_t. The following script reproduces the leak:

    10.times do
      100_000.times do
        "\ufffd".encode(Encoding::US_ASCII, fallback: proc { raise })
      rescue
      end

      puts `ps -o rss= -p #{$$}`
    end

Before:

    451196
    889980
    1328508
    1767676
    2206460
    2645372
    3083900
    3522428
    3960956
    4399484

After:

    12508
    12636
    12892
    12892
    13148
    13404
    13532
    13788
    13916
    13916
@pull pull bot locked and limited conversation to collaborators Oct 25, 2025
@pull pull bot added the ⤵️ pull label Oct 25, 2025
@pull pull bot merged commit cb30288 into turkdevops:master Oct 25, 2025
1 of 2 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants