Skip to content

Handle non-standard Method.source in jl_ir_flag_has_image_globalref#61220

Merged
maleadt merged 3 commits intomasterfrom
tb/foreign_ir
Mar 4, 2026
Merged

Handle non-standard Method.source in jl_ir_flag_has_image_globalref#61220
maleadt merged 3 commits intomasterfrom
tb/foreign_ir

Conversation

@maleadt
Copy link
Member

@maleadt maleadt commented Mar 3, 2026

Methods created with custom source data (e.g. via CompilerCaching's add_method which stores domain-specific IR) are neither CodeInfo nor compressed String. Return 0 instead of asserting, since such methods cannot have image globalrefs.

Methods created with custom source data (e.g. via CompilerCaching's
add_method which stores domain-specific IR) are neither CodeInfo nor
compressed String. Return 0 instead of asserting, since such methods
cannot have image globalrefs.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@maleadt maleadt added bugfix This change fixes an existing bug backport 1.13 Change should be backported to release-1.13 backport 1.12 Change should be backported to release-1.12 labels Mar 3, 2026
Co-authored-by: Cody Tapscott <84105208+topolarity@users.noreply.github.com>
[skip ci]
@maleadt maleadt merged commit edd8e94 into master Mar 4, 2026
@maleadt maleadt deleted the tb/foreign_ir branch March 4, 2026 07:07
KristofferC pushed a commit that referenced this pull request Mar 5, 2026
…61220)

Methods created with custom source data (e.g. via CompilerCaching's
add_method which stores domain-specific IR) are neither CodeInfo nor
compressed String. Return 0 instead of asserting, since such methods
cannot have image globalrefs.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Cody Tapscott <84105208+topolarity@users.noreply.github.com>
(cherry picked from commit edd8e94)
maleadt added a commit that referenced this pull request Mar 6, 2026
…61220)

Methods created with custom source data (e.g. via CompilerCaching's
add_method which stores domain-specific IR) are neither CodeInfo nor
compressed String. Return 0 instead of asserting, since such methods
cannot have image globalrefs.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Cody Tapscott <84105208+topolarity@users.noreply.github.com>
@maleadt maleadt removed backport 1.12 Change should be backported to release-1.12 backport 1.13 Change should be backported to release-1.13 labels Mar 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix This change fixes an existing bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants