parent
b2ced8e83c
commit
7383c784f8
@ -0,0 +1,18 @@
|
||||
diff --git a/lib/concurrent/map.rb b/lib/concurrent/map.rb
|
||||
index f3aa55d5..34696efc 100644
|
||||
--- a/lib/concurrent/map.rb
|
||||
+++ b/lib/concurrent/map.rb
|
||||
@@ -210,12 +210,8 @@ module Concurrent
|
||||
undef :freeze
|
||||
|
||||
# @!visibility private
|
||||
- DEFAULT_OBJ_ID_STR_WIDTH = 0.size == 4 ? 7 : 14 # we want to look "native", 7 for 32-bit, 14 for 64-bit
|
||||
- # override default #inspect() method: firstly, we don't want to be spilling our guts (i-vars), secondly, MRI backend's
|
||||
- # #inspect() call on its @backend i-var will bump @backend's iter level while possibly yielding GVL
|
||||
def inspect
|
||||
- id_str = (object_id << 1).to_s(16).rjust(DEFAULT_OBJ_ID_STR_WIDTH, '0')
|
||||
- "#<#{self.class.name}:0x#{id_str} entries=#{size} default_proc=#{@default_proc.inspect}>"
|
||||
+ format '%s entries=%d default_proc=%s>', to_s[0..-2], size.to_s, @default_proc.inspect
|
||||
end
|
||||
|
||||
private
|
@ -1,2 +1,2 @@
|
||||
SHA512 (concurrent-ruby-1.0.4-specs.tar.gz) = ecdd08b1e30f60fe9b7cf3973ca74669cc978c23c698d16c75538e13afb41240c87ac6ab3725ffd797fe9786c9fb642704ac052042defa89f764a15abbd864a2
|
||||
SHA512 (concurrent-ruby-1.0.4.gem) = 84ab0ba23822012dbdf35165ea80080bc995c393eb734672b45e076a278324acad60e07160b3a549699e19d35af6ac8b21d19817e57e60bb53c1ee94401221cb
|
||||
SHA512 (concurrent-ruby-1.0.5-specs.tar.gz) = f13da35b9b6cce1182d822723811b27aa661c3dfd231e2d3ace09451ee01f737d343d1d18f5debc296b1534ef0b6a919e679a8ef693a7d75b557e65d19432ef0
|
||||
SHA512 (concurrent-ruby-1.0.5.gem) = 523df60096e77a377405b71f9133f28284ca73284bb52456bf1e1a38dbb34c593b3aa2ed9ceb019afbed4805ba2bc3d7c846d3a66139924ec7fa0ccb3fcf9324
|
||||
|
Loading…
Reference in new issue