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

Backport deque memory fix #898

Merged
merged 5 commits into from
Feb 20, 2024
Merged

Conversation

nickrobinson251
Copy link
Member

@nickrobinson251 nickrobinson251 commented Feb 20, 2024

kpamnany and others added 2 commits February 20, 2024 18:03
* Bump codecov/codecov-action from 3 to 4

Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 3 to 4.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](codecov/codecov-action@v3...v4)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* Use `Base._unsetindex!` in `pop!` and `popfirst!` for Deque

So that popped elements are not rooted by the deque and can be
GCed when they drop out of caller scope.

* Test Deque for leaks

* Use `Base._unsetindex!` in `pop!` and `popfirst!` for CircularDeque

So that popped elements are not rooted by the deque and can be GCed
when they drop out of caller scope.

* Test CircularDeque for leaks

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@nickrobinson251
Copy link
Member Author

nickrobinson251 commented Feb 20, 2024

lol the release-0.18 branch has different CI, and tests against Julia v1.10... which fails! (so that's a good catch)

https://github.com/JuliaCollections/DataStructures.jl/actions/runs/7977951656/job/21782026775?pr=898

@nickrobinson251
Copy link
Member Author

oooohhh, it's not Julia v1.10 is v1.0 that's failing!

@nickrobinson251
Copy link
Member Author

_unsetindex! isn't defined til v1.3

JuliaLang/julia@6f5cefb

@nickrobinson251
Copy link
Member Author

i've done the lazy fix and just defined _unsertindex! as a no-op on Julia v1.0 - v1.2

if an alternative (like drop support for pre-v1.3) or a better fix (actually implement _unsetindex! for pre-v1.3) is preferred, please let me know (cc @oxinabox)

@nickrobinson251 nickrobinson251 merged commit b5ba47d into release-0.18 Feb 20, 2024
6 of 8 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.

2 participants