Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

src: fix creating Isolates from addons #45885

Merged
merged 1 commit into from Dec 23, 2022

Commits on Dec 16, 2022

  1. src: fix creating Isolates from addons

    daae938 broke addons which create their own `Isolate`
    instances, because enabling the shared-readonly-heap feature
    of V8 requires all snapshots used for different `Isolate`s to
    be identical. Usage of addons that do this has probably
    decreased quite a bit since Worker threads were introduced
    in Node.js, but it’s still a valid use case, and in any case
    the breakage was probably not intentional (although the referenced
    commit did require test changes because of this issue).
    
    This commit addresses this issue partially by caching the
    V8 snapshot parameters and ignoring ones passed in from users
    in `NewIsolate()` when this feature is enabled, and makes
    the `NodeMainInstance` snapshot-based isolate creation
    also re-use this code.
    addaleax committed Dec 16, 2022
    Copy the full SHA
    19630c9 View commit details
    Browse the repository at this point in the history