Skip to content

feat: allow custom v8 snapshots to be used in the main process and the default snapshot in the renderer process - #35695

Merged
VerteDinde merged 2 commits into
21-x-yfrom
trop/21-x-y-bp-feat-allow-custom-v8-snapshots-to-be-used-in-the-main-process-and-the-default-snapshot-in-the-renderer-process-1663273306165
Sep 24, 2022
Merged

feat: allow custom v8 snapshots to be used in the main process and the default snapshot in the renderer process#35695
VerteDinde merged 2 commits into
21-x-yfrom
trop/21-x-y-bp-feat-allow-custom-v8-snapshots-to-be-used-in-the-main-process-and-the-default-snapshot-in-the-renderer-process-1663273306165

Conversation

@trop

@trop trop Bot commented Sep 15, 2022

Copy link
Copy Markdown
Contributor

Backport of #35266

See that PR for details.

Notes: Added LoadBrowserProcessSpecificV8Snapshot as a new fuse that will let the main/browser process load its v8 snapshot from a file at browser_v8_context_snapshot.bin. Any other process will use the same path as is used today.

@trop
trop Bot requested review from a team as code owners September 15, 2022 20:21
@electron-cation electron-cation Bot added the new-pr 🌱 PR opened recently label Sep 15, 2022
@trop trop Bot added 21-x-y backport This is a backport PR backport/requested 🗳 semver/minor backwards-compatible functionality labels Sep 15, 2022
@electron-cation electron-cation Bot removed the new-pr 🌱 PR opened recently label Sep 15, 2022
@ryanthemanuel

Copy link
Copy Markdown
Contributor

@ckerr and @codebytere, I'm new to the patch back process. Is there anything that I need to do to get this in? Or will someone from your end take care of what needs to be taken care of? Thanks!

@VerteDinde VerteDinde left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Approved on behalf of @electron/wg-releases

@VerteDinde

Copy link
Copy Markdown
Member

@ryanthemanuel Backports just need to be approved by our Releases WG, which yours was yesterday! Would you mind rebasing this PR against latest 21-x-y, in order to kick off CircleCI? 🙂

@ryanthemanuel

Copy link
Copy Markdown
Contributor

Hi @VerteDinde thanks for the approval. I'd update the branch, but I don't have write privs to the repo.

ryanthemanuel and others added 2 commits September 23, 2022 11:28
…e default snapshot in the renderer process (#35266)

* Updates to allow for using a custom v8 snapshot file name

* Allow using a custom v8 snapshot file name

* Fix up patch due to merge

* Use fuse to set up custom v8 snapshot file in browser process

* Refactor to use delegate instead of command line parameter

* Refactoring

* Update due to merge

* PR comments

* Rename patch

* Rename patch
@VerteDinde
VerteDinde force-pushed the trop/21-x-y-bp-feat-allow-custom-v8-snapshots-to-be-used-in-the-main-process-and-the-default-snapshot-in-the-renderer-process-1663273306165 branch from aeec599 to 55f7404 Compare September 23, 2022 18:28
@VerteDinde
VerteDinde merged commit 9631cee into 21-x-y Sep 24, 2022
@VerteDinde
VerteDinde deleted the trop/21-x-y-bp-feat-allow-custom-v8-snapshots-to-be-used-in-the-main-process-and-the-default-snapshot-in-the-renderer-process-1663273306165 branch September 24, 2022 19:31
@release-clerk

release-clerk Bot commented Sep 24, 2022

Copy link
Copy Markdown

Release Notes Persisted

Added LoadBrowserProcessSpecificV8Snapshot as a new fuse that will let the main/browser process load its v8 snapshot from a file at browser_v8_context_snapshot.bin. Any other process will use the same path as is used today.

@VerteDinde

Copy link
Copy Markdown
Member

@ryanthemanuel Done - thanks again for this fix, it's very appreciated! 🙇‍♀️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

21-x-y backport/approved ✅ backport This is a backport PR semver/minor backwards-compatible functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants