Skip to content

Cross-memory model data #318

@rust-highfive

Description

@rust-highfive

Issue by larsbergstrom
Wednesday Jul 16, 2014 at 13:31 GMT

For earlier discussion, see rust-lang/rust#15715

This issue was labelled with: A-servo in the Rust repository


In our current model, any time that we return a JS object to Rust, we carefully thread in some Rust code that ensures the JS GC adds it to the root set and unregister it when Rust drops the value.

The ultimate goal would be for the Rust compiler to generate stack / register maps for JS-owned values so that the JS GC can directly walk the Rust stack. This would eliminate the need for explicit rooting and would reduce constraints on JS GC implementation.

CC: @zwarich @pcwalton

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-machineProposals relating to Rust's abstract machine.T-compilerRelevant to the compiler team, which will review and decide on the RFC.T-langRelevant to the language team, which will review and decide on the RFC.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions