Skip to content

Conversation

@mkeskells
Copy link
Contributor

@mkeskells mkeskells commented Aug 11, 2025

SUMMARY

Node4 has a memory leak. The last node references is nulled

so if you have a node containing (a,b,c,d)
and then you remove(0), and remove (2)
The leak is caused by the fist remove, but only becomes a leaf on the second one
the node contains ((b,c), but the child array is (b,c,null, d)

I had a quick look at the higher order odes and they look OK, but need tests
I dont have time to write these now, and cant be sure of not similar leaf being there (or creeping in later), so I think there should be some tests to confirm this

Automated Checks

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

@mkeskells mkeskells force-pushed the memory-leak-in-remove branch 2 times, most recently from da6ea08 to b7f62d2 Compare August 11, 2025 19:42
add tests for Node4
@mkeskells mkeskells force-pushed the memory-leak-in-remove branch from b7f62d2 to 6e1b840 Compare August 11, 2025 22:28
@mkeskells
Copy link
Contributor Author

mkeskells commented Aug 11, 2025

why does the gradle wrapper validation keep failing?
I just chnaged the commit message to retrigger the bui;d

@lemire lemire merged commit b9e0a44 into RoaringBitmap:master Aug 12, 2025
7 checks passed
@lemire
Copy link
Member

lemire commented Aug 12, 2025

Merged.

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.

2 participants