Skip to content

Scope LongLivedObjectCollection per runtime [3/n]#43410

Closed
fabriziocucci wants to merge 2 commits intofacebook:mainfrom
fabriziocucci:export-D54649209
Closed

Scope LongLivedObjectCollection per runtime [3/n]#43410
fabriziocucci wants to merge 2 commits intofacebook:mainfrom
fabriziocucci:export-D54649209

Conversation

@fabriziocucci
Copy link
Copy Markdown
Contributor

Summary:
Changelog:
[General] [Breaking] - Make LongLivedObjectCollection::get accept a Runtime reference as parameter.

Context

Approach 1 as described in RFC post.

This diff

  • Replace the LongLivedObjectCollection singleton with a map from Runtime -> LongLivedObjectCollection so that each RN instance has its own collection.
  • Update MSFT fork accordingly

Reviewed By: javache, RSNara

Differential Revision: D54649209

Summary:

Changelog:
[General] [Breaking] - Make `LongLivedObject` constructor accept a `Runtime` reference.

# Context

Approach 1 as described in [RFC post](https://fb.workplace.com/groups/615693552291894/permalink/1693347124526526/).

# This diff

* Embed `Runtime` reference in `LongLivedObject` to keep supporting `allowRelease` method (and update extending classes accordingly)
* Update MSFT fork accordingly

Reviewed By: RSNara

Differential Revision: D54638813
Summary:
Changelog:
[General] [Breaking] - Make `LongLivedObjectCollection::get` accept a Runtime reference as parameter.

# Context

Approach 1 as described in [RFC post](https://fb.workplace.com/groups/615693552291894/permalink/1693347124526526/).

# This diff

* Replace the `LongLivedObjectCollection` singleton with a map from `Runtime -> LongLivedObjectCollection` so that each RN instance has its own collection.
* Update MSFT fork accordingly

Reviewed By: javache, RSNara

Differential Revision: D54649209
@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported p: Facebook Partner: Facebook Partner labels Mar 11, 2024
@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request was exported from Phabricator. Differential Revision: D54649209

@analysis-bot
Copy link
Copy Markdown

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 18,065,739 +12,250
android hermes armeabi-v7a n/a --
android hermes x86 n/a --
android hermes x86_64 n/a --
android jsc arm64-v8a 21,420,203 +12,282
android jsc armeabi-v7a n/a --
android jsc x86 n/a --
android jsc x86_64 n/a --

Base commit: 1ea269f
Branch: main

@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in 86a52cc.

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Mar 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants