Skip to content

Add test showcasing memory leak in RemoteObjectsTable in Hermes#44936

Closed
hoxyq wants to merge 1 commit into
facebook:mainfrom
hoxyq:export-D58531763
Closed

Add test showcasing memory leak in RemoteObjectsTable in Hermes#44936
hoxyq wants to merge 1 commit into
facebook:mainfrom
hoxyq:export-D58531763

Conversation

@hoxyq
Copy link
Copy Markdown
Contributor

@hoxyq hoxyq commented Jun 13, 2024

Summary:

Changelog: [Internal]

Added a small test that uses folly:ManualExecutor, which reproduces the memory leak issue in Hermes' RemoteObjectsTable:

  1. Send Runtime.enable
  2. Evaluate console.log(<object>); to populate RemoteObjectsTable
  3. Send Page.reload to reload VM

This test is expected to fail, because by the time it is published, the D58398254 hasn't landed.

Differential Revision: D58531763

@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 Jun 13, 2024
@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

@analysis-bot
Copy link
Copy Markdown

analysis-bot commented Jun 13, 2024

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 20,365,563 +1,042
android hermes armeabi-v7a n/a --
android hermes x86 n/a --
android hermes x86_64 n/a --
android jsc arm64-v8a 23,569,624 -7
android jsc armeabi-v7a n/a --
android jsc x86 n/a --
android jsc x86_64 n/a --

Base commit: 8b53d41
Branch: main

@facebook-github-bot
Copy link
Copy Markdown
Contributor

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

@hoxyq hoxyq force-pushed the export-D58531763 branch from 7be7a4c to 3c4eb7f Compare June 13, 2024 18:31
…book#44936)

Summary:
Pull Request resolved: facebook#44936

# Changelog: [Internal]

Added a small test that uses `folly:ManualExecutor`, which reproduces the memory leak issue in Hermes' RemoteObjectsTable:
1. Send `Runtime.enable`
2. Evaluate `console.log(<object>);` to populate `RemoteObjectsTable`
3. Send `Page.reload` to reload VM

This test is expected to fail, because by the time it is published, the D58398254 hasn't landed.

Reviewed By: motiz88

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

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

@hoxyq hoxyq force-pushed the export-D58531763 branch from 3c4eb7f to e9397c0 Compare June 14, 2024 09:52
@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Jun 14, 2024
@github-actions github-actions Bot added the Merged This PR has been merged. label Jun 14, 2024
@github-actions
Copy link
Copy Markdown

This pull request was successfully merged by @hoxyq in 7bd98ee.

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

@facebook-github-bot
Copy link
Copy Markdown
Contributor

This pull request has been merged in 7bd98ee.

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