Skip to content

Change GC's methods from module_function to metaclass methods#9142

Merged
headius merged 1 commit intojruby:masterfrom
trinistr:change-gc-annotations
Dec 30, 2025
Merged

Change GC's methods from module_function to metaclass methods#9142
headius merged 1 commit intojruby:masterfrom
trinistr:change-gc-annotations

Conversation

@trinistr
Copy link
Contributor

@trinistr trinistr commented Dec 17, 2025

Follow-up to #9094 (comment)

Methods of GC are supposed to be just methods of metaclass (except for #garbage_collect), not module_functions.

There is a slight possibility of this being a breaking change if someone was includeing GC to use its methods, but I don't see why anyone would do this when it's mostly no-ops.

@headius headius merged commit 7254789 into jruby:master Dec 30, 2025
77 checks passed
@headius
Copy link
Member

headius commented Dec 30, 2025

Thank you!

@enebo enebo added this to the JRuby 10.0.3.0 milestone Feb 2, 2026
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