Skip to content

Allow binding only portions of core classes #8903

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

headius
Copy link
Member

@headius headius commented Jul 9, 2025

This is an experiment to modularize the binding of core class methods on classes which have many different sets of behaviors. Initially, the work is based on modularizing Kernel to allow optionally binding methods that access things like IO.

This relates to recent discussions about making JRuby smaller and more secure for embedded use cases that may want to be able to disable things like IO and Thread. We need to be able to disable related features in other classes and modules like Kernel for that to be fully realized.

See related work in #8893.

headius added 2 commits July 9, 2025 13:19
Interface static method invocations must be emitted with the new
InterfaceMethodref descriptor, which we were not doing for the
generated invokers. This fixes that.
This moves IO-related Kernel methods to a separate interface which
can be enabled or disabled independently of the rest of Kernel.
This relates to recent discussions about making JRuby safely
embeddable with only specific classes and features loaded.

See other work in jruby#8893
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