Skip to content

Simplify Java TurboModule lookup#45322

Closed
javache wants to merge 1 commit into
facebook:mainfrom
javache:export-D59465976
Closed

Simplify Java TurboModule lookup#45322
javache wants to merge 1 commit into
facebook:mainfrom
javache:export-D59465976

Conversation

@javache
Copy link
Copy Markdown
Member

@javache javache commented Jul 8, 2024

Summary:
Instead of using multiple weak_ptr and weak_ref, use a single weak_ref to the Java object and use that to get back to the original C++ instance, without the need for additional shared_ptr.

Changelog: [Internal]

Differential Revision: D59465976

@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. p: Facebook Partner: Facebook Partner labels Jul 8, 2024
@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

@javache javache force-pushed the export-D59465976 branch from e91c15a to eb9bc3c Compare July 9, 2024 10:08
@analysis-bot
Copy link
Copy Markdown

analysis-bot commented Jul 9, 2024

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 21,283,983 -156
android hermes armeabi-v7a n/a --
android hermes x86 n/a --
android hermes x86_64 n/a --
android jsc arm64-v8a 24,481,040 -125
android jsc armeabi-v7a n/a --
android jsc x86 n/a --
android jsc x86_64 n/a --

Base commit: 12b64b7
Branch: main

@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

@javache javache force-pushed the export-D59465976 branch from eb9bc3c to 4a32db2 Compare July 9, 2024 12:51
Summary:
Pull Request resolved: facebook#45322

Instead of using multiple weak_ptr and weak_ref, use a single weak_ref to the Java object and use that to get back to the original C++ instance, without the need for additional shared_ptr.

Changelog: [Internal]

Reviewed By: RSNara

Differential Revision: D59465976
@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in 2455a84.

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Jul 11, 2024
@github-actions
Copy link
Copy Markdown

This pull request was successfully merged by @javache in 2455a84.

When will my fix make it into a release? | How to file a pick request?

@javache javache deleted the export-D59465976 branch July 15, 2024 14:41
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