Skip to content

Commit bb8f0f4

Browse files
authored
fix: lua_newuserdata doesn't return aligned data in ARM64 (#37)
1 parent 310ae32 commit bb8f0f4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

patch/1.19.9/ngx_lua-enable_keepalive.patch

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ index e4ac57a..b5ffe2e 100644
532532
return rc;
533533
}
534534

535-
@@ -403,24 +567,337 @@ static void
535+
@@ -403,24 +567,335 @@ static void
536536
ngx_http_lua_balancer_free_peer(ngx_peer_connection_t *pc, void *data,
537537
ngx_uint_t state)
538538
{
@@ -716,8 +716,6 @@ index e4ac57a..b5ffe2e 100644
716716
+
717717
+ items = (ngx_http_lua_balancer_keepalive_item_t *) (&upool->free + 1);
718718
+
719-
+ ngx_http_lua_assert((void *) items == ngx_align_ptr(items, NGX_ALIGNMENT));
720-
+
721719
+ for (i = 0; i < cpool_size; i++) {
722720
+ ngx_queue_insert_head(&upool->free, &items[i].queue);
723721
+ items[i].cpool = upool;

0 commit comments

Comments
 (0)