/usr/lib/ruby/vendor_ruby/thread_safe/util.rb is in ruby-thread-safe 0.3.6-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | module ThreadSafe
module Util
FIXNUM_BIT_SIZE = (0.size * 8) - 2
MAX_INT = (2 ** FIXNUM_BIT_SIZE) - 1
CPU_COUNT = 16 # is there a way to determine this?
autoload :AtomicReference, 'thread_safe/util/atomic_reference'
autoload :Adder, 'thread_safe/util/adder'
autoload :CheapLockable, 'thread_safe/util/cheap_lockable'
autoload :PowerOfTwoTuple, 'thread_safe/util/power_of_two_tuple'
autoload :Striped64, 'thread_safe/util/striped64'
autoload :Volatile, 'thread_safe/util/volatile'
autoload :VolatileTuple, 'thread_safe/util/volatile_tuple'
autoload :XorShiftRandom, 'thread_safe/util/xor_shift_random'
end
end
|