Skip to content

Commit aaeaef9

Browse files
committed
use ::Array not Concurrent::Array
1 parent 141e959 commit aaeaef9

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/concurrent/collection/map/atomic_reference_map_backend.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -831,7 +831,7 @@ def rebuild(table)
831831
# no lock needed (or available) if bin >= 0, because we're not popping values from locked_indexes until we've run through the whole table
832832
redo unless (bin >= 0 ? table.cas(i, nil, forwarder) : lock_and_clean_up_reverse_forwarders(table, old_table_size, new_table, i, forwarder))
833833
elsif Node.locked_hash?(node_hash = node.hash)
834-
locked_indexes ||= Array.new
834+
locked_indexes ||= ::Array.new
835835
if bin < 0 && locked_arr_idx > 0
836836
locked_arr_idx -= 1
837837
i, locked_indexes[locked_arr_idx] = locked_indexes[locked_arr_idx], i # swap with another bin

lib/concurrent/edge/promises.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1797,8 +1797,8 @@ def process_on_blocker_resolution(future, index)
17971797

17981798
def on_resolvable(resolved_future, index)
17991799
all_fulfilled = true
1800-
values = Array.new(@Resolutions.size)
1801-
reasons = Array.new(@Resolutions.size)
1800+
values = ::Array.new(@Resolutions.size)
1801+
reasons = ::Array.new(@Resolutions.size)
18021802

18031803
@Resolutions.each_with_index do |internal_state, i|
18041804
fulfilled, values[i], reasons[i] = internal_state.result

lib/concurrent/tuple.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class Tuple
2424
attr_reader :size
2525

2626
# @!visibility private
27-
Tuple = defined?(Rubinius::Tuple) ? Rubinius::Tuple : Array
27+
Tuple = defined?(Rubinius::Tuple) ? Rubinius::Tuple : ::Array
2828
private_constant :Tuple
2929

3030
# Create a new tuple of the given size.

0 commit comments

Comments
 (0)