Skip to content

Opaque GC References in Workers + Lock-free Reads? #985

Open
@sebmarkbage

Description

@sebmarkbage

Assuming opaque GC references make it through... #733

It would be very useful to have these references passed between WASM threads or Web Workers. Even if they aren't accessible in those context. This puts some more constraints on the GC but not as bad as if they're completely accessible. Applications can defer to the main thread for reads and mutations.

In this environment it would be good to avoid locks on immutable cells such as frozen properties in JS objects or if there is a new GC object model. In this model, only reads would need a special op.

This would allow us to implement a similar strategy as https://ocaml.io/w/Multicore for parallelism that favors immutability.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions