File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ Please see the [roadmap](https://github.com/ruby-concurrency/concurrent-ruby/iss
15
15
* Added missing synchronizations to ` TimerSet `
16
16
* Fixed bug with return value of ` Concurrent::Actor::Utils::Pool#ask `
17
17
* Fixed timing bug in ` TimerTask `
18
+ * Fixed bug when creating a ` JavaThreadPoolExecutor ` with minimum pool size of zero
18
19
* Removed confusing warning when not using native extenstions
19
20
* Improved documentation
20
21
Original file line number Diff line number Diff line change @@ -74,9 +74,7 @@ def initialize(opts = {})
74
74
raise ArgumentError . new ( 'min_threads cannot be more than max_threads' ) if min_length > max_length
75
75
raise ArgumentError . new ( "#{ @overflow_policy } is not a valid overflow policy" ) unless OVERFLOW_POLICIES . keys . include? ( @overflow_policy )
76
76
77
- if min_length == 0 && @max_queue == 0
78
- queue = java . util . concurrent . SynchronousQueue . new
79
- elsif @max_queue == 0
77
+ if @max_queue == 0
80
78
queue = java . util . concurrent . LinkedBlockingQueue . new
81
79
else
82
80
queue = java . util . concurrent . LinkedBlockingQueue . new ( @max_queue )
@@ -90,7 +88,7 @@ def initialize(opts = {})
90
88
set_shutdown_hook
91
89
end
92
90
93
- # @!macro executor_module_method_can_overflow_question
91
+ # @!macro executor_module_method_can_overflow_question
94
92
def can_overflow?
95
93
@max_queue != 0
96
94
end
You can’t perform that action at this time.
0 commit comments