Skip to content

[jit] Make sure ctx->currentPos > 0 before any register allocation …#789

Merged
yuxiaomao merged 1 commit intoHaxeFoundation:masterfrom
Apprentice-Alchemist:fix-787
May 20, 2025
Merged

[jit] Make sure ctx->currentPos > 0 before any register allocation …#789
yuxiaomao merged 1 commit intoHaxeFoundation:masterfrom
Apprentice-Alchemist:fix-787

Conversation

@Apprentice-Alchemist
Copy link
Copy Markdown
Contributor

…can happen.

copy can trigger register allocation eg when booleans are involved, so currentPos needs to be >0 before then otherwise alloc_reg thinks all registers are locked and fails.

Closes #787

@yuxiaomao yuxiaomao merged commit 533baa5 into HaxeFoundation:master May 20, 2025
11 checks passed
@yuxiaomao
Copy link
Copy Markdown
Collaborator

Thank you!

@Apprentice-Alchemist Apprentice-Alchemist deleted the fix-787 branch May 20, 2025 11:25
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.

"JIT ERROR 0 (jit.c line 968)" Out of registers ! (Occurs all >1.15.0)

2 participants