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-
Alan Wu f5d2041138
Avoid assert failure when NULL EC is expected
After 5680c38c75, postponed job APIs now
expect to be called on native threads not managed by Ruby and handles
getting a NULL execution context. However, in debug builds the change
runs into an assertion failure with GET_EC() which asserts that EC is
non-NULL. Avoid the assertion failure by passing `false` for `expect_ec`
instead as the intention is to handle when there is no EC.

Add a test from John Crepezzi and John Hawthorn to exercise this
situation.

See GH-4108
See GH-5094

[Bug #17573]

Co-authored-by: John Hawthorn <john@hawthorn.email>
Co-authored-by: John Crepezzi <john.crepezzi@gmail.com>
2021-11-22 19:29:29 -05:00
..
arith_seq/extract Update dependencies 2021-11-21 16:21:18 +09:00
array
bignum
bug-3571
bug-5832 Update dependencies 2021-11-21 16:21:18 +09:00
bug-14834 Update dependencies 2021-11-21 16:21:18 +09:00
bug_reporter Update dependencies 2021-11-21 16:21:18 +09:00
class Update dependencies 2021-11-21 16:21:18 +09:00
cxxanyargs Update dependencies 2021-11-21 16:21:18 +09:00
debug Update dependencies 2021-11-21 16:21:18 +09:00
dln/empty
enumerator_kw Update dependencies 2021-11-21 16:21:18 +09:00
exception Update dependencies 2021-11-21 16:21:18 +09:00
fatal Update dependencies 2021-11-21 16:21:18 +09:00
file Update dependencies 2021-11-21 16:21:18 +09:00
float Update dependencies 2021-11-21 16:21:18 +09:00
funcall
gvl/call_without_gvl Update dependencies 2021-11-21 16:21:18 +09:00
hash
integer Update dependencies 2021-11-21 16:21:18 +09:00
iseq_load
iter Update dependencies 2021-11-21 16:21:18 +09:00
load Update dependencies 2021-11-21 16:21:18 +09:00
marshal Update dependencies 2021-11-21 16:21:18 +09:00
memory_status Update dependencies 2021-11-21 16:21:18 +09:00
memory_view
method
notimplement Update dependencies 2021-11-21 16:21:18 +09:00
num2int
path_to_class Update dependencies 2021-11-21 16:21:18 +09:00
popen_deadlock
postponed_job Avoid assert failure when NULL EC is expected 2021-11-22 19:29:29 -05:00
printf Update dependencies 2021-11-21 16:21:18 +09:00
proc Update dependencies 2021-11-21 16:21:18 +09:00
random Update dependencies 2021-11-21 16:21:18 +09:00
rational Update dependencies 2021-11-21 16:21:18 +09:00
rb_call_super_kw
recursion
regexp Update dependencies 2021-11-21 16:21:18 +09:00
RUBY_ALIGNOF Update dependencies 2021-11-21 16:21:18 +09:00
scan_args Update dependencies 2021-11-21 16:21:18 +09:00
st Update dependencies 2021-11-21 16:21:18 +09:00
string Update dependencies 2021-11-21 16:21:18 +09:00
struct Update dependencies 2021-11-21 16:21:18 +09:00
symbol Update dependencies 2021-11-21 16:21:18 +09:00
thread_fd Update dependencies 2021-11-21 16:21:18 +09:00
time Update dependencies 2021-11-21 16:21:18 +09:00
tracepoint Update dependencies 2021-11-21 16:21:18 +09:00
typeddata
vm Update dependencies 2021-11-21 16:21:18 +09:00
wait
win32
auto_ext.rb