summaryrefslogtreecommitdiff
path: root/process.c
diff options
context:
space:
mode:
authorKoichi Sasada <ko1@atdot.net>2022-04-08 16:44:03 +0900
committerKoichi Sasada <ko1@atdot.net>2022-04-08 21:30:32 +0900
commitc77a31df5ed17231b2ddd213899716b900181ad2 (patch)
tree104a4ae2f188e74a5e897adefd317657b0c9539b /process.c
parent798e21637f28d308bf0d52081fedd1a49cd1f851 (diff)
downloadruby-c77a31df5ed17231b2ddd213899716b900181ad2.tar.gz
call `const_added` after `autoload`
When calling `const_added` while process in `autoload`, it can cause synchronization issue because of a thread swithcing. http://ci.rvm.jp/logfiles/brlog.trunk.20220407-152213#L489 ``` 1) Module#autoload (concurrently) raises a LoadError in each thread if the file does not exist ERROR NameError: uninitialized constant ModuleSpecs::Autoload::FileDoesNotExist ModuleSpecs::Autoload::FileDoesNotExist ^^^^^^^^^^^^^^^^^^ /tmp/ruby/v3/src/trunk/spec/ruby/core/module/autoload_spec.rb:965:in `block (5 levels) in <top (required)>' ```
Diffstat (limited to 'process.c')
0 files changed, 0 insertions, 0 deletions