Skip to content

Commit

Permalink
update the 'epoll_event' layout for Linux aarch64 architecture.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlekseiEfimov committed Dec 13, 2024
1 parent d831006 commit 042158d
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@ public class epoll_event {
// between Linux-x64 and Linux-aarch64
static {
$LAYOUT = Architecture.isAARCH64() ?
// Linux-aarch64 - expanded
// Linux-aarch64 - not packed
MemoryLayout.structLayout(
FFMUtils.align(BindingUtils.C_INT, 1).withName("events"),
BindingUtils.C_INT.withName("events"),
MemoryLayout.paddingLayout(4),
FFMUtils.align(epoll_data.layout(), 1).withName("data")
epoll_data.layout().withName("data")
).withName("epoll_event") :
// Linux-x64 - compacted
// Linux-x64 - packed
MemoryLayout.structLayout(
FFMUtils.align(BindingUtils.C_INT, 1).withName("events"),
FFMUtils.align(epoll_data.layout(), 1).withName("data")
Expand Down

0 comments on commit 042158d

Please sign in to comment.