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

GlobalEndpointManager: Fixes Memory Leak #4226

Conversation

NaluTripician
Copy link
Contributor

Pull Request Template

Description

This will fix the memory leak in GlobalEndpointManager where CancellationTokenSources are not disposed.

Type of change

Please delete options that are not relevant.

  • [] Bug fix (non-breaking change which fixes an issue)

Closing issues

To automatically close an issue: closes #IssueNumber

Copy link
Member

@FabianMeiswinkel FabianMeiswinkel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PLease take a look at the thread-safety comment

Copy link
Member

@FabianMeiswinkel FabianMeiswinkel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM now - thanks!

Copy link
Member

@kundadebdatta kundadebdatta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks!

@kundadebdatta kundadebdatta added the auto-merge Enables automation to merge PRs label Dec 31, 2023
@microsoft-github-policy-service microsoft-github-policy-service bot merged commit 02e4f34 into master Dec 31, 2023
20 checks passed
@microsoft-github-policy-service microsoft-github-policy-service bot deleted the users/nalutripician/cancellationTokenMemoryLeakFix branch December 31, 2023 20:16
@NaluTripician NaluTripician changed the title [Internal] GlobalEndpointManager: Fixes Memory Leak GlobalEndpointManager: Fixes Memory Leak Jan 2, 2024
NaluTripician added a commit that referenced this pull request Jan 2, 2024
* memory leak fix

* removed commented out code

* changed to async so test would pass, with just static GetPropetiesHelper will get disposed before requests go through

* added thread saftey

* fixed to interlock pattern

---------

Co-authored-by: Debdatta Kunda <87335885+kundadebdatta@users.noreply.github.com>
microsoft-github-policy-service bot pushed a commit that referenced this pull request Jan 3, 2024
* [Internal] GlobalEndpointManager: Fixes Memory Leak (#4226)

* memory leak fix

* removed commented out code

* changed to async so test would pass, with just static GetPropetiesHelper will get disposed before requests go through

* added thread saftey

* fixed to interlock pattern

---------

Co-authored-by: Debdatta Kunda <87335885+kundadebdatta@users.noreply.github.com>

* changelog + version bump

* genAPI

* remove code changes

* removed nit

---------

Co-authored-by: Debdatta Kunda <87335885+kundadebdatta@users.noreply.github.com>
NaluTripician added a commit that referenced this pull request Jan 3, 2024
* [Internal] GlobalEndpointManager: Fixes Memory Leak (#4226)

* memory leak fix

* removed commented out code

* changed to async so test would pass, with just static GetPropetiesHelper will get disposed before requests go through

* added thread saftey

* fixed to interlock pattern

---------

Co-authored-by: Debdatta Kunda <87335885+kundadebdatta@users.noreply.github.com>

* changelog + version bump

* genAPI

* remove code changes

* removed nit

---------

Co-authored-by: Debdatta Kunda <87335885+kundadebdatta@users.noreply.github.com>
NaluTripician added a commit that referenced this pull request Jan 3, 2024
* memory leak fix

* removed commented out code

* changed to async so test would pass, with just static GetPropetiesHelper will get disposed before requests go through

* added thread saftey

* fixed to interlock pattern

---------

Co-authored-by: Debdatta Kunda <87335885+kundadebdatta@users.noreply.github.com>
NaluTripician added a commit that referenced this pull request Jan 3, 2024
* [Internal] GlobalEndpointManager: Fixes Memory Leak (#4226)

* memory leak fix

* removed commented out code

* changed to async so test would pass, with just static GetPropetiesHelper will get disposed before requests go through

* added thread saftey

* fixed to interlock pattern

---------

Co-authored-by: Debdatta Kunda <87335885+kundadebdatta@users.noreply.github.com>

* changelog + version bump

* genAPI

* remove code changes

* removed nit

---------

Co-authored-by: Debdatta Kunda <87335885+kundadebdatta@users.noreply.github.com>
NaluTripician added a commit that referenced this pull request Jan 3, 2024
* memory leak fix

* removed commented out code

* changed to async so test would pass, with just static GetPropetiesHelper will get disposed before requests go through

* added thread saftey

* fixed to interlock pattern

---------

Co-authored-by: Debdatta Kunda <87335885+kundadebdatta@users.noreply.github.com>
microsoft-github-policy-service bot pushed a commit that referenced this pull request Jan 3, 2024
* SDK 3.37.1 : Adds version bump and changelog (#4231)

* [Internal] GlobalEndpointManager: Fixes Memory Leak (#4226)

* memory leak fix

* removed commented out code

* changed to async so test would pass, with just static GetPropetiesHelper will get disposed before requests go through

* added thread saftey

* fixed to interlock pattern

---------

Co-authored-by: Debdatta Kunda <87335885+kundadebdatta@users.noreply.github.com>

* changelog + version bump

* genAPI

* remove code changes

* removed nit

---------

Co-authored-by: Debdatta Kunda <87335885+kundadebdatta@users.noreply.github.com>

* [Internal] GlobalEndpointManager: Fixes Memory Leak (#4226)

* memory leak fix

* removed commented out code

* changed to async so test would pass, with just static GetPropetiesHelper will get disposed before requests go through

* added thread saftey

* fixed to interlock pattern

---------

Co-authored-by: Debdatta Kunda <87335885+kundadebdatta@users.noreply.github.com>

---------

Co-authored-by: Debdatta Kunda <87335885+kundadebdatta@users.noreply.github.com>
microsoft-github-policy-service bot pushed a commit that referenced this pull request Jan 3, 2024
* SDK 3.37.1 : Adds version bump and changelog (#4231)

* [Internal] GlobalEndpointManager: Fixes Memory Leak (#4226)

* memory leak fix

* removed commented out code

* changed to async so test would pass, with just static GetPropetiesHelper will get disposed before requests go through

* added thread saftey

* fixed to interlock pattern

---------

Co-authored-by: Debdatta Kunda <87335885+kundadebdatta@users.noreply.github.com>

* changelog + version bump

* genAPI

* remove code changes

* removed nit

---------

Co-authored-by: Debdatta Kunda <87335885+kundadebdatta@users.noreply.github.com>

* [Internal] GlobalEndpointManager: Fixes Memory Leak (#4226)

* memory leak fix

* removed commented out code

* changed to async so test would pass, with just static GetPropetiesHelper will get disposed before requests go through

* added thread saftey

* fixed to interlock pattern

---------

Co-authored-by: Debdatta Kunda <87335885+kundadebdatta@users.noreply.github.com>

---------

Co-authored-by: Debdatta Kunda <87335885+kundadebdatta@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-merge Enables automation to merge PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants