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

Allow custom sections to specify gc roots #139

Merged
merged 1 commit into from Nov 20, 2019

Conversation

alexcrichton
Copy link
Collaborator

This commit adds APIs necessary to allow custom sections to reference
core wasm functions/memories/etc and provide gc roots into them. This is
intended to be used, for example, with wasm interface types.

@alexcrichton
Copy link
Collaborator Author

An example PR which consumes this is at bytecodealliance/wasm-interface-types#14

Copy link
Member

@fitzgen fitzgen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

/// array provided.
///
/// The default provided method does nothing.
fn gc_add_roots(&self, roots: &mut Roots) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick: let's name this add_gc_roots, since that makes more sense when read out loud in a sentence.

This commit adds APIs necessary to allow custom sections to reference
core wasm functions/memories/etc and provide gc roots into them. This is
intended to be used, for example, with wasm interface types.
@alexcrichton alexcrichton merged commit 4690357 into rustwasm:master Nov 20, 2019
@alexcrichton alexcrichton deleted the custom-section-roots branch November 20, 2019 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants