Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Freeze immutable objects and add explicit make_shareable to make library ↵ | Lars Kanis | 2023-05-07 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | definitions Ractor usable Freeze objects which are immutable from the start are now freezed. This allows these objects to be used by Ractor without make_shareable. This partially reverts commit 4fc6a8c5ec8a9a720330946af9d1103015c62942 in such a way, that functions are stored in a module variable @ffi_functions. Enums are implemented per FFI::Library not per attached function. To make them shareable they would have to be copied and freezed per function. This would increase memory footprint for the sake of Ractor support. IMHO it's better to mark the module explicit as finished by .freeze to allow its use in a Ractor. This also enables querying the enum definitions from a Ractor. Using a Hash instead of per-function variables allow to use foo! and bar? methods as wished in #971. Fixes #971 | ||||
* | Move FFI::DataConverter to Ruby | Benoit Daloze | 2019-01-07 | 1 | -2/+0 |
| | | | | | * Include DataConverter in StructByReference in Ruby code to simplify ordering. | ||||
* | Fix bad search and replace in C code.1.9.2 | Charles Oliver Nutter | 2013-10-29 | 1 | -1/+0 |
| | |||||
* | Switch license to BSD throughout codebase. See #288. | Charles Oliver Nutter | 2013-10-29 | 1 | -12/+22 |
| | |||||
* | Re-work exception saving & non-gil function callbacks | Wayne Meissner | 2013-04-23 | 1 | -0/+1 |
| | |||||
* | Remove rbffi_gc_mark_locations() | Wayne Meissner | 2013-01-08 | 1 | -1/+0 |
| | |||||
* | Add rbffi_gc_mark_locations() that behaves like rb_gc_mark_locations(), for ↵ | Wayne Meissner | 2012-12-29 | 1 | -0/+1 |
| | | | | VMs that do not have it. | ||||
* | Sync up copyright headers | Wayne Meissner | 2011-01-09 | 1 | -3/+23 |
| | |||||
* | Add custom data converters for parameter and return types | Wayne Meissner | 2010-05-22 | 1 | -0/+1 |
| | |||||
* | Split Variadic invokers out from Invoker | Wayne Meissner | 2009-08-01 | 1 | -0/+1 |
| | |||||
* | Add FunctionInfo that will eventually replace CallbackInfo | Wayne Meissner | 2009-07-24 | 1 | -0/+2 |
| | |||||
* | Rework the naming a bit. | Wayne Meissner | 2009-05-06 | 1 | -7/+5 |
| | |||||
* | Pass the ffi module into each of the _Init functions | Wayne Meissner | 2009-05-06 | 1 | -5/+4 |
| | |||||
* | Support function pointer return values | Wayne Meissner | 2009-03-28 | 1 | -1/+1 |
| | |||||
* | Implement FFI::Type and FFI::Type::Builtin | Wayne Meissner | 2009-03-28 | 1 | -1/+2 |
| | |||||
* | Create the type and size maps in C, and use them to do size lookups in ↵ | Wayne Meissner | 2009-03-15 | 1 | -1/+1 |
| | | | | Buffer#initialize | ||||
* | Remove comment at top of file | Wayne Meissner | 2009-03-03 | 1 | -7/+0 |
| | |||||
* | Move extension into ext/ffi_c to make the layout compliant with rake-compiler | Wayne Meissner | 2008-12-10 | 1 | -0/+32 |