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

bootstrap: support configure-time user-land snapshot #42466

Closed

Commits on Mar 25, 2022

  1. bootstrap: refresh options in pre-execution

    Refresh the options map during pre-execution to pave the way for
    user land snapshots which may need to access run-time options at
    snapshot-building time. The default embedded bootstrap snapshot
    is still prevented from accessing them at snapshot building time
    since it serves a wider audience and is ignorant of application
    states, while the user-land snapshots are meant to be
    application-specific and so it makes sense for them to access
    runtime states as long as the snapshotted-code
    works with re-initialized runtime states.
    joyeecheung committed Mar 25, 2022
    Configuration menu
    Copy the full SHA
    208d047 View commit details
    Browse the repository at this point in the history
  2. build: add --node-snapshot-main configure option

    This adds a --build-snapshot runtime option which is currently only
    supported by the node_mksnapshot binary, and a --node-snapshot-main
    configure option that makes use it to run a custom script when
    building the embedded snapshot. The idea is to have this experimental
    feature in core as a configure-time feature for now, and investigate
    the renaming V8 bugs before we make it available to more users via
    making it a runtime option.
    joyeecheung committed Mar 25, 2022
    Configuration menu
    Copy the full SHA
    4d59a74 View commit details
    Browse the repository at this point in the history
  3. bootstrap: make I/O streams work with user-land snapshot

    Use the mksnapshot cleanup hooks to release the references
    to the native streams so that they can be destroyed right
    before the snapshot is taken, and move the initialization
    of the global console to pre-execution so that they can be
    re-initialized during snapshot dehydration. This makes
    it possible for user-land snapshots to use the I/O during
    snapshot building.
    joyeecheung committed Mar 25, 2022
    Configuration menu
    Copy the full SHA
    c812b98 View commit details
    Browse the repository at this point in the history
  4. bootstrap: run inspector and event loop in snapshot builder

    This makes --inspect and stdin/out functional in the embedded snapshot,
    currently it's not guaranteed that these work perfectly, the
    plan is to investigate any out-of-sync states that might appear
    in user land snapshots with this while the it is a configure-time
    feature.
    joyeecheung committed Mar 25, 2022
    Configuration menu
    Copy the full SHA
    39cd563 View commit details
    Browse the repository at this point in the history

Commits on Mar 26, 2022

  1. Configuration menu
    Copy the full SHA
    da8c19f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    b1f934f View commit details
    Browse the repository at this point in the history

Commits on Mar 28, 2022

  1. Configuration menu
    Copy the full SHA
    4d0500d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    25f4c8d View commit details
    Browse the repository at this point in the history