jolt.ffi: a :blocking option for collect-safe foreign calls
A library binding a blocking native call (accept/recv/connect/...) needs it emitted __collect_safe so the thread deactivates for the call and doesn't pin the stop-the-world collector. foreign-fn / defcfn take an optional trailing :blocking; the backend emits (foreign-procedure __collect_safe ...). Needed for the ring-janet-adapter socket-server port. ffi-binding-test asserts a thread parked in a :blocking call doesn't block (collect).
This commit is contained in:
parent
db9bed226f
commit
2a64e65a1c
5 changed files with 93 additions and 74 deletions
File diff suppressed because one or more lines are too long
Loading…
Add table
Add a link
Reference in a new issue