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

[Backport] 8322149: ConcurrentHashMap smarter presizing for copy constructor and putAll #101

Closed
MaxXSoft opened this issue Aug 30, 2024 · 0 comments

Comments

@MaxXSoft
Copy link
Collaborator

Backport this patch to improve performance.

Check openjdk/jdk#17116 for more details.

MaxXSoft added a commit to MaxXSoft/dragonwell21 that referenced this issue Aug 30, 2024
…tructor and putAll

Summary: ConcurrentHashMap::ConcurrentHashMap() -> putAll() -> tryPresize() -> transfer() does a lot of unnecessary work. There is nothing to transfer from the old table, since the table is just being initialized.

Testing: CI testing

Reviewers: lingjun-cg, yuleil

Issue: dragonwell-project#101
MaxXSoft added a commit that referenced this issue Sep 5, 2024
…tructor and putAll

Summary: ConcurrentHashMap::ConcurrentHashMap() -> putAll() -> tryPresize() -> transfer() does a lot of unnecessary work. There is nothing to transfer from the old table, since the table is just being initialized.

Testing: CI testing

Reviewers: lingjun-cg, yuleil

Issue: #101
@MaxXSoft MaxXSoft closed this as completed Sep 5, 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