1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/spec/ruby/core
Jeremy Evans 08759edea8
Remove autoload for constant if the autoload fails
Previously, if an autoload failed (the file was loaded, but the
constant was not defined by the autoloaded file). Ruby will try
to autoload again if you delete the autoloaded file from
$LOADED_FEATURES.  With this change, the autoload and the
constant itself are removed as soon as it fails.

To handle cases where multiple threads are autoloading, when
deleting an autoload, handle the case where another thread
already deleted it.

Fixes [Bug #15790]
2021-10-08 14:54:26 -07:00
..
argf
array
basicobject
binding
builtin_constants
class
comparable
complex
data
dir Update to ruby/spec@ccf0d85 2021-10-05 19:41:44 +02:00
encoding Update to ruby/spec@ccf0d85 2021-10-05 19:41:44 +02:00
enumerable Update to ruby/spec@ccf0d85 2021-10-05 19:41:44 +02:00
enumerator
env
exception
false
fiber
file Remove the useless platform guard 2021-10-06 12:19:52 +09:00
filetest
float
gc
hash
integer
io
kernel Update to ruby/spec@ccf0d85 2021-10-05 19:41:44 +02:00
main
marshal Update to ruby/spec@ccf0d85 2021-10-05 19:41:44 +02:00
matchdata
math
method
module Remove autoload for constant if the autoload fails 2021-10-08 14:54:26 -07:00
mutex
nil
numeric
objectspace Update to ruby/spec@ccf0d85 2021-10-05 19:41:44 +02:00
proc
process
queue
random
range
rational
regexp
signal
sizedqueue
string Update to ruby/spec@ccf0d85 2021-10-05 19:41:44 +02:00
struct
symbol
systemexit
thread
threadgroup
time
tracepoint
true
unboundmethod
warning