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对1.7版本的put阶段中初始化一个segment有误 #1563

Open
goingwxj opened this issue Feb 22, 2022 · 1 comment
Labels
待处理 待处理的issue/pr

Comments

@goingwxj
Copy link

image

这里的第五点,应该是对整个过程的总结。
image
翻看源码我们会发现,所谓的创建一个数组HashEntry后, 判断segment是否还为空,其实就是CAS操作。

建议将第五点删掉或者提到开头当总结

@goingwxj
Copy link
Author

其实也就是第四点初始化包含了第五点的CAS尝试,咋一看以为初始话完了后还要做一次CAS尝试

@Snailclimb Snailclimb added the 待处理 待处理的issue/pr label Feb 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
待处理 待处理的issue/pr
Projects
None yet
Development

No branches or pull requests

2 participants