brew vendor-gems: commit updates.
This commit is contained in:
parent
bc54f1a7c9
commit
3312767cd5
@ -3,7 +3,7 @@ require 'rbconfig'
|
|||||||
ruby_engine = defined?(RUBY_ENGINE) ? RUBY_ENGINE : 'ruby'
|
ruby_engine = defined?(RUBY_ENGINE) ? RUBY_ENGINE : 'ruby'
|
||||||
ruby_version = RbConfig::CONFIG["ruby_version"]
|
ruby_version = RbConfig::CONFIG["ruby_version"]
|
||||||
path = File.expand_path('..', __FILE__)
|
path = File.expand_path('..', __FILE__)
|
||||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/concurrent-ruby-1.1.7/lib/concurrent-ruby"
|
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/concurrent-ruby-1.1.8/lib/concurrent-ruby"
|
||||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/i18n-1.8.7/lib"
|
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/i18n-1.8.7/lib"
|
||||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/minitest-5.14.3/lib"
|
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/minitest-5.14.3/lib"
|
||||||
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/tzinfo-2.0.4/lib"
|
$:.unshift "#{path}/../#{ruby_engine}/#{ruby_version}/gems/tzinfo-2.0.4/lib"
|
||||||
|
|||||||
@ -1,3 +0,0 @@
|
|||||||
module Concurrent
|
|
||||||
VERSION = '1.1.7'
|
|
||||||
end
|
|
||||||
@ -97,7 +97,10 @@ module Concurrent
|
|||||||
# The cost of GC'ing a TLV is linear in the number of threads using TLVs
|
# The cost of GC'ing a TLV is linear in the number of threads using TLVs
|
||||||
# But that is natural! More threads means more storage is used per TLV
|
# But that is natural! More threads means more storage is used per TLV
|
||||||
# So naturally more CPU time is required to free more storage
|
# So naturally more CPU time is required to free more storage
|
||||||
THREAD_LOCAL_ARRAYS.each_value { |array| array[index] = nil }
|
#
|
||||||
|
# DO NOT use each_value which might conflict with new pair assignment
|
||||||
|
# into the hash in #value= method
|
||||||
|
THREAD_LOCAL_ARRAYS.values.each { |array| array[index] = nil }
|
||||||
# free index has to be published after the arrays are cleared
|
# free index has to be published after the arrays are cleared
|
||||||
FREE.push(index)
|
FREE.push(index)
|
||||||
end
|
end
|
||||||
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user