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

Inter-process StructuredClone of SharedArrayBuffer #21392

Open
asajeffrey opened this issue Aug 13, 2018 · 0 comments
Open

Inter-process StructuredClone of SharedArrayBuffer #21392

asajeffrey opened this issue Aug 13, 2018 · 0 comments

Comments

@asajeffrey
Copy link
Member

@asajeffrey asajeffrey commented Aug 13, 2018

In https://searchfox.org/mozilla-central/rev/ca869724246f4230b272ed1c8b9944596e80d920/js/public/StructuredClone.h#218-224, the policy for inter-process cloning is:

    // In the JS engine, SharedArrayBuffers can only be cloned intra-process
    // because the shared memory areas are allocated in process-private memory.
    // Clients should therefore deny SharedArrayBuffers when cloning data that
    // are to be transmitted inter-process.
    //
    // Clients should also deny SharedArrayBuffers when cloning data that are to
    // be transmitted intra-process if policy needs dictate such denial.

We need to think about what this means for Servo: can we use the type system to distinguish beween inter- vs intra-process structured clone data?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.