Skip to content

Commit

Permalink
chore(patches): make luajit patches apply cleanly (#11622)
Browse files Browse the repository at this point in the history
### Summary

Without this I get:
```
Hunk #1 succeeded at 121 (offset 8 lines).
Hunk #2 succeeded at 143 (offset 8 lines).
```

When applying the `ldp_stp_fusion` patch.

Signed-off-by: Aapo Talvensaari <[email protected]>
  • Loading branch information
bungle authored Sep 26, 2023
1 parent 894206b commit e8d2fe7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ diff --git a/bundle/LuaJIT-2.1-20230410/src/lj_emit_arm64.h b/bundle/LuaJIT-2.1-
index d4c542557..9161c9582 100644
--- a/bundle/LuaJIT-2.1-20230410/src/lj_emit_arm64.h
+++ b/bundle/LuaJIT-2.1-20230410/src/lj_emit_arm64.h
@@ -113,6 +113,17 @@ static int emit_checkofs(A64Ins ai, int64_t ofs)
@@ -121,6 +121,17 @@ static int emit_checkofs(A64Ins ai, int64_t ofs)
}
}

Expand All @@ -30,7 +30,7 @@ index d4c542557..9161c9582 100644
static void emit_lso(ASMState *as, A64Ins ai, Reg rd, Reg rn, int64_t ofs)
{
int ot = emit_checkofs(ai, ofs), sc = (ai >> 30) & 3;
@@ -124,11 +135,9 @@ static void emit_lso(ASMState *as, A64Ins ai, Reg rd, Reg rn, int64_t ofs)
@@ -132,11 +143,9 @@ static void emit_lso(ASMState *as, A64Ins ai, Reg rd, Reg rn, int64_t ofs)
uint32_t prev = *as->mcp & ~A64F_D(31);
int ofsm = ofs - (1<<sc), ofsp = ofs + (1<<sc);
A64Ins aip;
Expand Down

1 comment on commit e8d2fe7

@khcp-gha-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bazel Build

Docker image available kong/kong:e8d2fe7619270120366cd2a34d31b9bc922f2a22
Artifacts available https://github.com/Kong/kong/actions/runs/6314579978

Please sign in to comment.