Fix attach_function of functions ending in ? or ! #971
Added:
Convert all C-based classes to TypedData and use write barriers. #994, #995, #996, #997, #998, #999, #1000, #1001, #1003, #1004, #1005, #1006, #1007, #1008, #1009, #1010, #1011, #1012
This results in less pressure on the garbage collector, since the objects can be promoted to the old generation, which means they only get marked on major GC.
Implement ObjectSpace.memsize_of() of all C-based classes.
Make FFI Ractor compatible. #1023
Modules extended per extend FFI::Library need to be frozen in order to be used by non-main Ractors.
This can be done by calling freeze below of all C interface definitions.
In a Ractor it's possible to:
load DLLs and call its functions, access its global variables
use builtin typedefs
use and modify ractor local typedefs
define callbacks
receive async callbacks from non-ruby threads
use frozen FFI::Library based modules with all attributes (enums, structs, typedefs, functions, callbacks)
invoke frozen functions and callbacks defined in the main Ractor
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/mendicant-original/puzzlenode/network/alerts).
Bumps ffi from 1.4.0 to 1.16.3.
Changelog
Sourced from ffi's changelog.
... (truncated)
Commits
6cef66d
Bump VERSION to 1.16.387ca653
Update CHANGELOG for ffi-1.16.3a8f7d97
Update link in README.md [ci skip]87ff960
Merge branch 'master' of github.com:ffi/ffic97b825
Add examples from https://github.com/ffi/ffi/wiki/How-to-use-FFI-in-Ruby-Ractorsc1ed9bc
Add link to Ractor docs to README.md13afd23
Merge pull request #1057 from mvz/avoid-frozen-typemap6e29dc1
Avoid trying to store new DataConverter type in frozen TypeDefs hashbf21280
Prepare a CHANGELOG entry for ffi-1.16.3683e18b
Merge pull request #1053 from larskanis/fix-1052Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show