summaryrefslogtreecommitdiff
path: root/spec/ruby/core/integer/shared
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2021-10-08 12:54:26 -0900
committerGitHub <noreply@github.com>2021-10-08 14:54:26 -0700
commit08759edea8fb75d46c3e75217e6613465426a0d2 (patch)
tree7fb4c92e54b0e5fc3767ceeb6c0db645374ae54f /spec/ruby/core/integer/shared
parentded5a66cb994c5731a17bc9a2420042248a2f1fe (diff)
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]
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4715 Merged-By: jeremyevans <code@jeremyevans.net>
Diffstat (limited to 'spec/ruby/core/integer/shared')
0 files changed, 0 insertions, 0 deletions