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

Use ConcurrentHashMap for JVM target #39

Merged
merged 4 commits into from
Feb 23, 2024

Conversation

ychescale9
Copy link
Member

@ychescale9 ychescale9 commented Apr 30, 2023

#38 attempts to use AndroidX Collection KMP on JVM and iOS (and a few others) for the thread-safe mutable map implementation to address JVM performance issue with Stately.

However both our basic JvmConcurrencyTest and lincheck surfaced ConcurrentModificationException in AndroidX Collection's SimpleArrayMap.

This PR instead use ConcurrentHashMap for JVM, and Stately for all other targets.

Our JvmConturrencyTest is passing but Lincheck's Model checking test still surfaces some linearizability issues with our RealCache implementation, though it's not a regression. #47

@ychescale9 ychescale9 marked this pull request as ready for review February 23, 2024 12:02
@ychescale9 ychescale9 merged commit 86aa406 into main Feb 23, 2024
3 checks passed
@ychescale9 ychescale9 deleted the yc/concurrent-hash-map-for-jvm branch February 23, 2024 12:13
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

Successfully merging this pull request may close these issues.

1 participant