Skip to content

[0.72] Release long lived JSI objects ASAP#12388

Merged
microsoft-github-policy-service[bot] merged 3 commits into
microsoft:0.72-stablefrom
vmoroz:PR/0.72-Fix_memory_leaks_in_long_lived_jsi_objects
Nov 14, 2023
Merged

[0.72] Release long lived JSI objects ASAP#12388
microsoft-github-policy-service[bot] merged 3 commits into
microsoft:0.72-stablefrom
vmoroz:PR/0.72-Fix_memory_leaks_in_long_lived_jsi_objects

Conversation

@vmoroz

@vmoroz vmoroz commented Nov 13, 2023

Copy link
Copy Markdown
Member

Cherry pick PR #12385

Type of Change

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

Why

While investigating memory leaks in RNW code I saw that we almost never delete objects from the JSI long lived object collection.

What

In this PR we release JSI long-lived objects as soon as we finish using them.
After this change, the list of long-lived objects is regularly cleaned.

Microsoft Reviewers: Open in CodeFlow

@vmoroz
vmoroz requested a review from a team as a code owner November 13, 2023 22:17
@vmoroz vmoroz added the AutoMerge Causes a PR to be automatically merged once all requirements are passed (label drives bot activity) label Nov 14, 2023
@microsoft-github-policy-service
microsoft-github-policy-service Bot merged commit 7c67ae0 into microsoft:0.72-stable Nov 14, 2023
@vmoroz
vmoroz deleted the PR/0.72-Fix_memory_leaks_in_long_lived_jsi_objects branch November 14, 2023 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AutoMerge Causes a PR to be automatically merged once all requirements are passed (label drives bot activity)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants