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

ExceptionHistogram 触发 ConcurrentHashMap bug #95

Closed
lrwh opened this issue Sep 3, 2024 · 0 comments
Closed

ExceptionHistogram 触发 ConcurrentHashMap bug #95

lrwh opened this issue Sep 3, 2024 · 0 comments

Comments

@lrwh
Copy link
Collaborator

lrwh commented Sep 3, 2024

异常信息

image

image

通过分析,主要是第73行代码触发了 bug,触发bug主要是因为hash碰撞,map无法及时扩容,JDK-8062841 : ConcurrentHashMap.computeIfAbsent stuck in an endless loop

long count = histogram.computeIfAbsent(typeName, k -> new AtomicLong()).getAndIncrement();

lrwh added a commit that referenced this issue Sep 3, 2024
修复 ExceptionHistogram 触发 ConcurrentHashMap bug #95
@lrwh lrwh closed this as completed Oct 10, 2024
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