-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Open
Labels
A-machineProposals relating to Rust's abstract machine.Proposals relating to Rust's abstract machine.T-compilerRelevant to the compiler team, which will review and decide on the RFC.Relevant 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.Relevant to the language team, which will review and decide on the RFC.
Description
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.
Metadata
Metadata
Assignees
Labels
A-machineProposals relating to Rust's abstract machine.Proposals relating to Rust's abstract machine.T-compilerRelevant to the compiler team, which will review and decide on the RFC.Relevant 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.Relevant to the language team, which will review and decide on the RFC.