diff options
author | Lars Kanis <lars@greiz-reinsdorf.de> | 2023-04-26 14:00:17 +0200 |
---|---|---|
committer | Lars Kanis <lars@greiz-reinsdorf.de> | 2023-04-27 13:47:57 +0200 |
commit | 4fc6a8c5ec8a9a720330946af9d1103015c62942 (patch) | |
tree | e8aa241415e858a4e422e9a0a86abc1711403f22 /ext/ffi_c/FunctionInfo.c | |
parent | e987ab50366a4b08617a20568eabdaa1fb761317 (diff) | |
download | ffi-4fc6a8c5ec8a9a720330946af9d1103015c62942.tar.gz |
Store each FFI::Function in it's own instance variabe in the module to be attached
This allows to freeze the FFI::Function immediately, so that it is shareable by Ractor without the need to freeze the module explicit.
To make it shareable the typedef hash used for variadic functions is duplicated and made frozen.
This creates a small compatibility issue:
Only typedefs defined above the variadic function can be used by that function.
If a typedef is created after the definition of the variadic function, then this typedef can no longer be used as parameter to that variadic function.
Also fix the retrieval of simple (non-struct) global variables per #attached_variables.
Closes #975
Diffstat (limited to 'ext/ffi_c/FunctionInfo.c')
0 files changed, 0 insertions, 0 deletions