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

[threads] Add a "shared-everything" feature #6658

Merged
merged 4 commits into from
Jun 14, 2024
Merged

[threads] Add a "shared-everything" feature #6658

merged 4 commits into from
Jun 14, 2024

Conversation

tlively
Copy link
Member

@tlively tlively commented Jun 13, 2024

Add the feature and flags to enable and disable it. Require the new feature to
be enabled for shared heap types to validate. To make the test work, update the
validator to actually check features for global types.

@tlively tlively requested a review from kripken June 13, 2024 00:45
@@ -949,7 +955,9 @@ FeatureSet Type::getFeatures() const {
if (sig.results.isTuple()) {
feats |= FeatureSet::Multivalue;
}
} else if (heapType->isContinuation()) {
}
Copy link
Member

Choose a reason for hiding this comment

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

Can something be both a signature and a continuation?

Copy link
Member Author

Choose a reason for hiding this comment

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

No, but the original else-if up above was incorrect because it is possible for something to have a non-trivial rec group or have a declared supertype or be open and also be a signature. Rather than mix ifs and if-elses, I just made everything an if.

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, that part made sense to me. But maybe it's still good to have an if-else chain after it, for the disjoint cases? That seems clearer to me (even if it might lead to some overlapping code).

Copy link
Member Author

Choose a reason for hiding this comment

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

Fair enough.

Add the feature and flags to enable and disable it. Require the new feature to
be enabled for shared heap types to validate. To make the test work, update the
validator to actually check features for global types.
@tlively tlively enabled auto-merge (squash) June 14, 2024 15:55
@tlively tlively merged commit 0fa99fb into main Jun 14, 2024
13 checks passed
@tlively tlively deleted the threads-feature branch June 14, 2024 19:07
@gkdn gkdn mentioned this pull request Aug 31, 2024
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.

2 participants