Skip to content

Commit e3bb86f

Browse files
committed
Reduced pure Ruby max threads below 14751
1 parent 04863fd commit e3bb86f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/concurrent/async.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ def init_mutex
297297
#
298298
# @!visibility private
299299
def init_synchronization
300-
raise InitializationError.new('#init_synchronization was already called') if @__async_initialized__
300+
return self if @__async_initialized__
301301

302302
@__async_initialized__ = true
303303
serializer = Concurrent::SerializedExecution.new

lib/concurrent/executor/ruby_thread_pool_executor.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ module Concurrent
1111
class RubyThreadPoolExecutor < RubyExecutorService
1212

1313
# Default maximum number of threads that will be created in the pool.
14-
DEFAULT_MAX_POOL_SIZE = 2**15 # 32768
14+
DEFAULT_MAX_POOL_SIZE = 2**13 # 8192
1515

1616
# Default minimum number of threads that will be retained in the pool.
1717
DEFAULT_MIN_POOL_SIZE = 0

0 commit comments

Comments
 (0)