ruby-changes:64479
From: Sutou <ko1@a...>
Date: Wed, 23 Dec 2020 05:50:15 +0900 (JST)
Subject: [ruby-changes:64479] 32849dc1bb (master): fiddle: Update to 1.0.5
https://git.ruby-lang.org/ruby.git/commit/?id=32849dc1bb From 32849dc1bbc3296aa13f86a35468ce16f8c32aab Mon Sep 17 00:00:00 2001 From: Sutou Kouhei <kou@c...> Date: Tue, 22 Dec 2020 14:56:47 +0900 Subject: fiddle: Update to 1.0.5 diff --git a/NEWS.md b/NEWS.md index 595d28e..9d9fda1 100644 --- a/NEWS.md +++ b/NEWS.md @@ -404,7 +404,7 @@ Outstanding ones only. https://github.com/ruby/ruby/blob/trunk/NEWS.md#L404 * Fiddle - * Update to Fiddle 1.0.4 + * Update to Fiddle 1.0.5 * IRB diff --git a/ext/fiddle/extconf.rb b/ext/fiddle/extconf.rb index 7e92d6a..6d1d510 100644 --- a/ext/fiddle/extconf.rb +++ b/ext/fiddle/extconf.rb @@ -137,8 +137,10 @@ else https://github.com/ruby/ruby/blob/trunk/ext/fiddle/extconf.rb#L137 have_func('ffi_closure_alloc', ffi_header) end -if libffi - $defs << "-DHAVE_FFI_PREP_CIF_VAR" +if libffi_version + if (libffi_version <=> [3, 0, 11]) >= 0 + $defs << "-DHAVE_FFI_PREP_CIF_VAR" + end else have_func('ffi_prep_cif_var', ffi_header) end diff --git a/ext/fiddle/function.c b/ext/fiddle/function.c index afa95d7..1d82bc8 100644 --- a/ext/fiddle/function.c +++ b/ext/fiddle/function.c @@ -451,8 +451,9 @@ Init_fiddle_function(void) https://github.com/ruby/ruby/blob/trunk/ext/fiddle/function.c#L451 * Caller must ensure the underlying function is called in a * thread-safe manner if running in a multi-threaded process. * - * Note that many Ruby C-extension APIs are thread-safe to call - * only when the Function is constructed with <code>need_gvl: true</code>. + * Note that it is not thread-safe to use this method to + * directly or indirectly call many Ruby C-extension APIs unless + * you don't pass +need_gvl: true+ to Fiddle::Function#new. * * For an example see Fiddle::Function * diff --git a/ext/fiddle/lib/fiddle/version.rb b/ext/fiddle/lib/fiddle/version.rb index d8aef1a..1b6259f 100644 --- a/ext/fiddle/lib/fiddle/version.rb +++ b/ext/fiddle/lib/fiddle/version.rb @@ -1,3 +1,3 @@ https://github.com/ruby/ruby/blob/trunk/ext/fiddle/lib/fiddle/version.rb#L1 module Fiddle - VERSION = "1.0.4" + VERSION = "1.0.5" end -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/