JDKSourceCode1.8 icon indicating copy to clipboard operation
JDKSourceCode1.8 copied to clipboard

ConcurrentHashMap wrong comment on line 59

Open lcn2017 opened this issue 6 years ago • 0 comments

第59行的注释 " * 在转变成树之前,还会有一次判断,只有键值对数量大于 64 才会发生转换。" HashMap中写的是对的,ConcurrentHashMap中的 MIN_TREEIFY_CAPACITY转换的时候也是用的tab.length比较的 所以不应该是键值对 而是table的长度为64

lcn2017 avatar Mar 27 '19 09:03 lcn2017