1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activesupport/lib/active_support/concurrency
yuuji.yaginuma 4f4f8a705a Make LoadInterlockAwareMonitor work in Ruby 2.7
Currently `LoadInterlockAwareMonitorTest` does not pass with Ruby 2.7 [1].
This is due to the refactoring of the `monitor` done in Ruby 2.7 [2].

With this refactoring, the behavior of the method has changed from the
expected behavior in `LoadInterlockAwareMonitor`.

This patch also overwrites `synchronize` so that
`LoadInterlockAwareMonitor` works as expected.

[1]: https://buildkite.com/rails/rails/builds/65877#eec47af5-7595-47cb-97c0-30c589716176/996-2743
[2]: https://bugs.ruby-lang.org/issues/16255
2019-12-23 07:24:22 +09:00
..
load_interlock_aware_monitor.rb Make LoadInterlockAwareMonitor work in Ruby 2.7 2019-12-23 07:24:22 +09:00
share_lock.rb Enable Layout/EmptyLinesAroundAccessModifier cop 2019-06-13 12:00:45 +09:00