1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/ext/-test-
normal 23444302d9 introduce rb_nogvl C-API to mark ubf as async-signal-safe
zlib and bignum both contain unblocking functions which are
async-signal-safe and do not require spawning additional
threads.

We can execute those functions directly in signal handlers
without incurring overhead of extra threads, so provide C-API
users the ability to deal with that.  Other C-API users may
have similar need.

This flexible API can supercede existing uses of
rb_thread_call_without_gvl and rb_thread_call_without_gvl2 by
introducing a flags argument to control behavior.

Note: this API is NOT finalized.  It needs approval from other
committers.  I prefer shorter name than previous
rb_thread_call_without_gvl* functions because my eyes requires
big fonts.

[Bug #15499]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66712 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-01-04 13:14:11 +00:00
..
arith_seq/extract ../arith_seq/../extract.c: remove unused variable 2018-12-21 16:19:31 +00:00
array/resize
bignum
bug-3571
bug-5832
bug_reporter
class
debug
dln/empty
exception UNREACHABLE_RETURN 2018-07-24 05:38:07 +00:00
fatal
file
float
funcall ruby.h: relax rb_funcall check on extra args for clang 2018-01-30 23:55:49 +00:00
gvl/call_without_gvl introduce rb_nogvl C-API to mark ubf as async-signal-safe 2019-01-04 13:14:11 +00:00
hash
integer
iseq_load
iter UNREACHABLE_RETURN 2018-07-24 05:38:07 +00:00
load load.c: fix rb_load_protect condition 2017-09-24 05:22:23 +00:00
marshal
memory_status long long is a C99ism 2018-01-02 06:41:47 +00:00
method
notimplement Add more assertions for NotImplementedError of instance method 2018-08-21 14:57:56 +00:00
num2int
path_to_class
popen_deadlock
postponed_job
printf
proc
rational
recursion
regexp
scan_args
st
string UNREACHABLE_RETURN 2018-07-24 05:38:07 +00:00
struct
symbol
thread_fd_close
time Fixup r63864 2018-07-06 01:53:57 +00:00
tracepoint
typeddata
vm
wait_for_single_fd -test-/wait_for_single_fd: fix -Wformat-security warning 2018-05-15 01:29:14 +00:00
win32 test_console_attr.rb: fix test 2018-01-15 12:25:24 +00:00
auto_ext.rb