Fix signals with struct args passed by value #296
No reviewers
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
github_actions
good first issue
help wanted
invalid
java
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
java-gi/java-gi!296
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "signal-struct-arg-layout"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.