1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/ext
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
..
-test- Avoid assert failure when NULL EC is expected 2021-11-22 19:29:29 -05:00
bigdecimal Update dependencies 2021-11-21 16:21:18 +09:00
cgi/escape Update dependencies 2021-11-21 16:21:18 +09:00
continuation Update dependencies 2021-11-21 16:21:18 +09:00
coverage Fix typos 2021-11-02 19:17:37 +09:00
date Update dependencies 2021-11-21 16:21:18 +09:00
digest Update dependencies 2021-11-21 16:21:18 +09:00
etc Update dependencies 2021-11-21 16:21:18 +09:00
fcntl Update dependencies 2021-11-21 16:21:18 +09:00
fiddle Update dependencies 2021-11-21 16:21:18 +09:00
io Update dependencies 2021-11-21 16:21:18 +09:00
json Update dependencies 2021-11-21 16:21:18 +09:00
monitor Update dependencies 2021-11-21 16:21:18 +09:00
nkf Update dependencies 2021-11-21 16:21:18 +09:00
objspace Update dependencies 2021-11-21 16:21:18 +09:00
openssl [ruby/openssl] Fix typos [ci skip] 2021-11-03 23:43:04 +09:00
pathname Update dependencies 2021-11-21 16:21:18 +09:00
psych Update dependencies 2021-11-21 16:21:18 +09:00
pty Update dependencies 2021-11-21 16:21:18 +09:00
racc/cparse Update dependencies 2021-11-21 16:21:18 +09:00
rbconfig/sizeof Update dependencies 2021-11-21 16:21:18 +09:00
readline Update dependencies 2021-11-21 16:21:18 +09:00
ripper Update dependencies 2021-11-21 16:21:18 +09:00
rubyvm
socket Update dependencies 2021-11-21 16:21:18 +09:00
stringio Update dependencies 2021-11-21 16:21:18 +09:00
strscan Update dependencies 2021-11-21 16:21:18 +09:00
syslog Update dependencies 2021-11-21 16:21:18 +09:00
win32 Fix some typos by spell checker 2021-04-26 10:07:41 +09:00
win32ole Fix _MSC_VER warnings 2021-06-03 00:07:25 +09:00
zlib Update dependencies 2021-11-21 16:21:18 +09:00
.document Remove unnecessary files from .document 2020-12-20 16:00:13 +09:00
extmk.rb transcode-tblgen.rb: make silent a little when just -v 2020-12-29 17:45:19 +09:00
Setup Removed sdbm entries from toolchanins 2020-06-19 08:26:47 +09:00
Setup.atheos Removed sdbm entries from toolchanins 2020-06-19 08:26:47 +09:00
Setup.nt Removed sdbm entries from toolchanins 2020-06-19 08:26:47 +09:00