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

MemoryUtils.Tracked used in tests releases collections #3328

Merged
merged 2 commits into from
Nov 29, 2023

Conversation

chemicL
Copy link
Member

@chemicL chemicL commented Jan 10, 2023

In case of operators that manipulate collections of items, the OnDiscardShouldNotLeakTest suite needed workarounds for manually discarding items from a collection. This change adds that type of handling into the MemoryUtils.Tracked::safeRelease method and should simplify and allow more cases to be added in the future for operators that deal with collections.

@chemicL chemicL added type/enhancement A general enhancement area/doOnDiscard This belongs to the doOnDiscard theme labels Jan 10, 2023
@chemicL chemicL requested a review from a team as a code owner January 10, 2023 10:27
@chemicL chemicL self-assigned this Jan 10, 2023
@chemicL chemicL added type/test A change in test sources and removed type/enhancement A general enhancement labels Nov 29, 2023
@chemicL chemicL added this to the 3.4.35 milestone Nov 29, 2023
@chemicL chemicL merged commit 4dbec08 into 3.4.x Nov 29, 2023
@reactorbot
Copy link

@chemicL this PR seems to have been merged on a maintenance branch, please ensure the change is merge-forwarded to intermediate maintenance branches and up to main 🙇

@chemicL chemicL deleted the discard-test-util-for-collections branch November 29, 2023 14:35
chemicL added a commit that referenced this pull request Nov 29, 2023
chemicL added a commit that referenced this pull request Nov 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/doOnDiscard This belongs to the doOnDiscard theme type/test A change in test sources
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants