Skip to content

Change to discardOldestFileIfNeeded sorting #2189

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

Open
wants to merge 14 commits into
base: next
Choose a base branch
from

Conversation

clr182
Copy link
Contributor

@clr182 clr182 commented May 26, 2025

Goal

Fix rare "Comparison method violates its general contract!" crashes in discardOldestFileIfNeeded when the file timestamps change during the sort().

Design

Capture all of the lastModified() timestamps into a stable list before sorting.

Testing

Relied on existing tests

@clr182 clr182 requested review from lemnik and YYChen01988 as code owners May 26, 2025 14:37
@bugsnagbot
Copy link
Collaborator

bugsnagbot commented May 26, 2025

Android notifier sizes

Format Size impact of Bugsnag (kB) Size impact of Bugsnag when Minified (kB)
APK 1832.19 1634.61
arm64_v8a 639.23 442.63
armeabi_v7a 577.8 377.1
x86 717.04 516.34
x86_64 684.28 483.58

Generated by 🚫 Danger

clr182 and others added 3 commits June 3, 2025 08:52
Co-authored-by: Jason <lemnik@users.noreply.github.com>
…re.kt

Co-authored-by: Jason <lemnik@users.noreply.github.com>
…re.kt

Co-authored-by: Jason <lemnik@users.noreply.github.com>
@clr182 clr182 requested a review from lemnik June 3, 2025 07:53
…re.kt

Co-authored-by: Jason <lemnik@users.noreply.github.com>
@clr182 clr182 requested a review from lemnik June 10, 2025 10:20
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.

3 participants