Skip to content

ivarSet missing return after megamorphic fallback#9425

Merged
headius merged 1 commit into
jruby:masterfrom
kares:megamorphic-return
May 8, 2026
Merged

ivarSet missing return after megamorphic fallback#9425
headius merged 1 commit into
jruby:masterfrom
kares:megamorphic-return

Conversation

@kares

@kares kares commented May 8, 2026

Copy link
Copy Markdown
Member

observed with debug (using log.binding)

before the fix, a megamorphic site logged"failed (polymorphic)" followed by a "bound directly" for the same type.

seems to me like this isn't intentional esp. given the ivarGet logic ends up returning after invokedynamic.maxpoly is reached...

@headius headius 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.

You are correct. This logic could be cleaned up (and hopefully will be soon).

@headius headius added this to the JRuby 10.1.1.0 milestone May 8, 2026
@headius
headius merged commit 19467a7 into jruby:master May 8, 2026
108 of 109 checks passed
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