Fix signals with struct args passed by value #296

Merged
jwharm merged 1 commit from signal-struct-arg-layout into main 2025-11-03 21:42:13 +01:00
jwharm commented 2025-11-03 21:42:05 +01:00 (Migrated from github.com)

For plain struct types (i.e. struct, union, boxed types) that are not passed by reference but by value, the FunctionDescriptor normally contains the complete memory layout of the struct. But for signals, it must be ValueLayout.ADDRESS. I'm not sure why, but the JVM segfaults otherwise.

For plain struct types (i.e. struct, union, boxed types) that are not passed by reference but by value, the FunctionDescriptor normally contains the complete memory layout of the struct. But for signals, it must be ValueLayout.ADDRESS. I'm not sure why, but the JVM segfaults otherwise.
Sign in to join this conversation.
No description provided.