Skip to content

Preserve replacement containers in Roaring64Bitmap.remove - #853

Merged
lemire merged 1 commit into
RoaringBitmap:masterfrom
PHJ2000:fix-remove-container-transition
Oct 5, 2026
Merged

lemire merged 1 commit into
RoaringBitmap:masterfrom
PHJ2000:fix-remove-container-transition

Conversation

@PHJ2000

@PHJ2000 PHJ2000 commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

SUMMARY

Delegate Roaring64Bitmap.remove(long) to removeLong(long) so replacement containers are installed after deletion. Ignoring the bitmap-to-array transition currently corrupts a subsequent portable round-trip.

Adds three threshold regressions with different high keys; all fail before the fix. ./gradlew spotlessApply test passes 35,297 tests (7 skipped) on Java 21. Changed Java files contain ASCII only.

Automated Checks

  • I have run ./gradlew test and made sure that my PR does not break any unit test.

Fixes #852.

@lemire
lemire merged commit c037cc6 into RoaringBitmap:master Oct 5, 2026
7 checks passed
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.

Roaring64Bitmap.remove loses the replacement container at the bitmap-to-array threshold

2 participants