Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ConcurrentHashMap wrong comment on line 59 #3

Open
lcn2017 opened this issue Mar 27, 2019 · 0 comments
Open

ConcurrentHashMap wrong comment on line 59 #3

lcn2017 opened this issue Mar 27, 2019 · 0 comments

Comments

@lcn2017
Copy link

lcn2017 commented Mar 27, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant