Skip to content

Conversation

@fglock
Copy link
Owner

@fglock fglock commented Jan 14, 2026

Fixes an ASM frame computation crash (ArrayIndexOutOfBoundsException) triggered by non-local control flow during RHS evaluation of short-circuit ops / deref expressions.

Changes:

  • Spill LHS/result when emitting short-circuit logical operators to keep operand stack consistent across control-flow.
  • Spill deref base values to locals before evaluating subscript expressions.

Repro:

  • ./jperl examples/life_bitpacked.pl 200 200 50

Result:

  • Script runs to completion.

@fglock fglock merged commit ee47cc8 into master Jan 14, 2026
2 checks passed
@fglock fglock deleted the fix-asm-frame-life-bitpacked branch January 14, 2026 08:21
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