We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f3a7f2 commit 42878baCopy full SHA for 42878ba
lib/concurrent/thread_safe/util/striped64.rb
@@ -83,7 +83,7 @@ class Cell < Concurrent::AtomicReference
83
84
# TODO: this only adds padding after the :value slot, need to find a way to add padding before the slot
85
# @!visibility private
86
- attr_reader *(Array.new(12).map {|i| :"padding_#{i}"})
+ attr_reader *(12.times.collect{ |i| "padding_#{i}".to_sym })
87
88
alias_method :cas, :compare_and_set
89
0 commit comments