Skip to content

Profile the real class for SETIVAR shape transitions - #1126

Closed
efegokdemir wants to merge 1 commit into
Shopify:masterfrom
efegokdemir:efe/zjit-setivar-real-class-1122
Closed

efegokdemir wants to merge 1 commit into
Shopify:masterfrom
efegokdemir:efe/zjit-setivar-real-class-1122

Conversation

@efegokdemir

Copy link
Copy Markdown

SETIVAR profiling now records the receiver's real class so shape transitions are associated with the correct class even when the receiver has a singleton class. Other self-profiling opcodes keep their existing behaviour. A regression test covers the singleton-class case and fails with the previous profiling path. The focused SETIVAR suite passed (15 tests). Fixes #1122.

Use the receiver's real class when profiling setinstancevariable so shape transitions are attributed to the object's class even when it has a singleton class.

Fixes Shopify#1122.
@github-actions github-actions Bot added the jit label Nov 13, 2026
@tekknolagi

Copy link
Copy Markdown

Please file PRs to ruby/ruby. This is like the 5th time I have commented this. Please don't waste both of our time.

@tekknolagi tekknolagi closed this Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ZJIT: Profile real class, not singleton class, for setinstancevariable

2 participants