Skip to content

Use rb_econv_memsize for econv_memsize - #18389

Merged
peterzhu2118 merged 1 commit into
ruby:masterfrom
peterzhu2118:econv-memsize
Aug 19, 2026
Merged

peterzhu2118 merged 1 commit into
ruby:masterfrom
peterzhu2118:econv-memsize

Conversation

@peterzhu2118

Copy link
Copy Markdown
Member

econv_memsize only counted the rb_econv_t struct, but it should use rb_econv_memsize.

Copilot AI lite review requested due to automatic review settings August 19, 2026 12:33

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adjusts Encoding::Converter’s typed-data memory accounting so it reflects the full rb_econv_t footprint (including internal buffers/transcodings) by delegating to rb_econv_memsize.

Changes:

  • Switch econv_memsize from a fixed sizeof(rb_econv_t) to rb_econv_memsize(...) for accurate accounting.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread transcode.c Outdated
econv_memsize only counted the rb_econv_t struct, but it should use
rb_econv_memsize.
Copilot AI review requested due to automatic review settings August 19, 2026 12:43

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@peterzhu2118
peterzhu2118 merged commit d85f82c into ruby:master Aug 19, 2026
128 checks passed
@peterzhu2118
peterzhu2118 deleted the econv-memsize branch August 19, 2026 22:58
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