Skip to content

Lazily acquire singleton class for instance_eval#9440

Draft
headius wants to merge 1 commit into
jruby:masterfrom
headius:lazy_singleton_eval
Draft

Lazily acquire singleton class for instance_eval#9440
headius wants to merge 1 commit into
jruby:masterfrom
headius:lazy_singleton_eval

Conversation

@headius
Copy link
Copy Markdown
Member

@headius headius commented May 11, 2026

This is based on the work done in ruby/ruby#5146 and defers creation of the singleton class until class-level changes are necessary (method definitions, etc). We add a singleton flag to the scope that is used to acquire the singleton class as needed.

Fixes #8638

This is based on the work done in ruby/ruby#5146
and defers creation of the singleton class until class-level
changes are necessary (method definitions, etc). We add a
singleton flag to the scope that is used to acquire the singleton
class as needed.

Fixes jruby#8638
@headius headius added this to the JRuby 10.1.1.0 milestone May 11, 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.

instance_eval should defer creation of singleton class

1 participant