-
Notifications
You must be signed in to change notification settings - Fork 433
Fixed synchronization inconsistencies #4320
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| public void add(double x, double y) { | ||
| while (mXY.get(x) != null) { | ||
| // add a very small value to x such as data points sharing the same x will | ||
| // still be added |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Restore synchronization on XYSeries mutations
The XYSeries mutators were unsynchronized in this change, but they still mutate and iterate over the shared TreeMap/ArrayList backing (mXY and the index list). When chart data is updated from a background thread while the UI thread renders (getRange, getX/Y, etc.), concurrent access to these non-thread-safe structures can now throw ConcurrentModificationException or corrupt min/max tracking; the previous synchronization prevented that race.
Useful? React with 👍 / 👎.
✅ Continuous Quality ReportTest & Coverage
Static Analysis
Generated automatically by the PR CI workflow. |
|
Compared 30 screenshots: 30 matched. Native Android coverage
✅ Native Android screenshot tests passed. Native Android coverage
|
69953df to
c7c8fd7
Compare







No description provided.