Skip to content

one-time-execute can sometimes contain a closure. guard it.#7493

Merged
enebo merged 1 commit intojruby:masterfrom
enebo:fix_irb_crash
Nov 28, 2022
Merged

one-time-execute can sometimes contain a closure. guard it.#7493
enebo merged 1 commit intojruby:masterfrom
enebo:fix_irb_crash

Conversation

@enebo
Copy link
Member

@enebo enebo commented Nov 28, 2022

in irb we get a scenarion where we delete parent scope of a closure because at the time we delete it we do not know a closure will exist. The fix is a trivial bullet-proof test line. Our actual code calling prepareForCompilation already is aware that null fic is a failure case.

in irb we get a scenarion where we delete parent scope of a closure
because at the time we delete it we do not know a closure will exist.
The fix is a trivial bullet-proof test line.  Our actual code calling
prepareForCompilation already is aware that null fic is a failure case.
@enebo enebo added this to the JRuby 9.4.1.0 milestone Nov 28, 2022
@enebo
Copy link
Member Author

enebo commented Nov 28, 2022

Note fixes #7486

@enebo enebo merged commit d832f9f into jruby:master Nov 28, 2022
@enebo
Copy link
Member Author

enebo commented Nov 28, 2022

for whatever reason jit for java 11 is flaking out but all this PR could do is not cause JRuby to crash so it has to be unrelated (unless these tests never really run at all and crashing somehow is showing it as a pass).

@enebo enebo deleted the fix_irb_crash branch November 28, 2022 17:42
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