Skip to content

Commit b03f598

Browse files
authored
Merge pull request #9058 from mhashizume/PUP-11723/7.x/concurrent-ruby
(PUP-11723) Remove concurrent-ruby private class
2 parents 0fb80ba + 155fc4b commit b03f598

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Gem::Specification.new do |s|
3737
s.add_runtime_dependency(%q<fast_gettext>, ">= 1.1", "< 3")
3838
s.add_runtime_dependency(%q<locale>, "~> 2.1")
3939
s.add_runtime_dependency(%q<multi_json>, "~> 1.13")
40-
s.add_runtime_dependency(%q<concurrent-ruby>, ["~> 1.0", "< 1.2.0"])
40+
s.add_runtime_dependency(%q<concurrent-ruby>, "~> 1.0")
4141
s.add_runtime_dependency(%q<deep_merge>, "~> 1.0")
4242
s.add_runtime_dependency(%q<scanf>, "~> 1.0")
4343

ext/project_data.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ gem_runtime_dependencies:
2525
locale: '~> 2.1'
2626
multi_json: '~> 1.10'
2727
puppet-resource_api: '~>1.5'
28-
concurrent-ruby: ["~> 1.0", "< 1.2.0"]
28+
concurrent-ruby: "~> 1.0"
2929
deep_merge: '~> 1.0'
3030
scanf: '~> 1.0'
3131
gem_rdoc_options:

lib/puppet/thread_local.rb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
require 'concurrent'
22

3-
# We want to use the pure Ruby implementation even on JRuby. If we use the Java
4-
# implementation of ThreadLocal, we end up leaking references to JRuby instances
5-
# and preventing them from being garbage collected.
6-
class Puppet::ThreadLocal < Concurrent::RubyThreadLocalVar
3+
class Puppet::ThreadLocal < Concurrent::ThreadLocalVar
74
end

0 commit comments

Comments
 (0)