Skip to content

Use rb_len_t for finalizer counts and tables - #124

Merged
peterzhu2118 merged 2 commits into
mainfrom
claude/cool-lichterman-850381
Oct 11, 2026
Merged

peterzhu2118 merged 2 commits into
mainfrom
claude/cool-lichterman-850381

Conversation

@hsbt

@hsbt hsbt commented Oct 10, 2026

Copy link
Copy Markdown
Member

ruby/ruby#19288 changed rb_gc_run_obj_finalizer in gc/gc.h to take rb_len_t and updated gc/mmtk/mmtk.c to match. Since gc/mmtk is synced from this repository, the next sync would turn mmtk.c in ruby/ruby back to long. The vendored gc/gc.h also no longer matches ruby/ruby master, so the Header check fails on every PR.

This forward-ports the gc/mmtk part of ruby/ruby@4ef08fc130 and re-vendors gc/gc.h with rake vendor_ruby_headers. rb_len_t is long on every platform for now, so the generated code does not change.

Generated with Claude Code

hsbt and others added 2 commits October 10, 2026 16:52
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ruby/ruby@4ef08fc130

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@peterzhu2118 peterzhu2118 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you!

@peterzhu2118
peterzhu2118 merged commit fcadc71 into main Oct 11, 2026
25 of 30 checks passed
@peterzhu2118
peterzhu2118 deleted the claude/cool-lichterman-850381 branch October 11, 2026 12:08
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.

2 participants