Skip to content

Backport deque memory fix#898

Merged
nickrobinson251 merged 5 commits intorelease-0.18from
npr-backport-deque-mem-fix
Feb 20, 2024
Merged

Backport deque memory fix#898
nickrobinson251 merged 5 commits intorelease-0.18from
npr-backport-deque-mem-fix

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] <support@github.com>

* 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] <support@github.com>
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
@fingolfin fingolfin deleted the npr-backport-deque-mem-fix branch March 17, 2025 11:00
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

Comments