Skip to content

Improve IR and JVM AOT support#9380

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

Improve IR and JVM AOT support#9380
headius wants to merge 1 commit into
jruby:masterfrom
headius:irscope_aot_fixes

Conversation

@headius

@headius headius commented Apr 19, 2026

Copy link
Copy Markdown
Member

While exploring more AOT use cases, specifically for Project Leyden AOTCache support, I ran into several code forms that appear to be causing AOT-compiled JVM bytecode to fail at boot with a null scope. I originally suspected bad eval detection, which should be improved by the first commit in this PR, but other cases soon surfaced. This PR will eventually improve the coverage of the following scenarios:

This is part of making IRScope better at detecting when full AOT
compilation is possible. In this case, not all child scopes of a
script would get scanned if only closures were included, so I
expand that scan to all lexically-contained scopes.
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