Skip to content

Backporting LuaJIT upstream commits part 12 #11278

@Buristan

Description

@Buristan

This ticket is an umbrella for all commits we planning to back-port in the next Q.
This list includes commits excluded from #11055 and may be updated later with some new.

general + x86/x64:

  • defe61a5 Rework stack overflow handling.
  • 19db4e9b Fix potential file descriptor leak in luaL_loadfile*().
  • ab39082f Fix another potential file descriptor leak in luaL_loadfile*().
  • e76bb50d Fix error generation in load*.
  • 048972db Fix JIT slot overflow during up-recursion.
  • cd4af8ad Avoid out-of-range PC for stack overflow error from snapshot restore.

Fixing partial snapshot restore:

  • 811c5322 Handle partial snapshot restore due to stack overflow.
  • 86e7123b Different fix for partial snapshot restore due to stack overflow.

ARM64:

  • 6c4826f1 ARM64: Fix IR_SLOAD assembly.
  • 564147f5 ARM64: Fix code generation for IR_SLOAD with typecheck + conversion.
  • 9493acc1 ARM64: Fix LDP code generation.
  • 8fbd576f ARM64: Fix assembly of HREFK.
  • 0fa2f1cb ARM64: Fix LDP/STP fusing for unaligned accesses.

Metadata

Metadata

Type

Projects

Status

Q2 2025 – Apr-Jun

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions