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

Revert "[threads] Allow i31refs of mixed shareability to compare equal (#6752)" #6761

Merged
merged 1 commit into from
Jul 17, 2024

Conversation

tlively
Copy link
Member

@tlively tlively commented Jul 17, 2024

Allowing Literals with different types to compare equal causes problems
for passes that want equality to mean real equality, e.g. because they
are using literals as map keys or because they otherwise need to use
them interchangeably.

At a minimum, we would need to differentiate a refEq operation where
mixed-shareability i31refs can compare equal from physical equality on
Literals, but there is also appetite to disallow mixed-shareability
ref.eq at the spec level. See
WebAssembly/shared-everything-threads#76.

#6752)"

Allowing Literals with different types to compare equal causes problems
for passes that want equality to mean real equality, e.g. because they
are using literals as map keys or because they otherwise need to use
them interchangeably.

At a minimum, we would need to differentiate a `refEq` operation where
mixed-shareability i31refs can compare equal from physical equality on
Literals, but there is also appetite to disallow mixed-shareability
ref.eq at the spec level. See
WebAssembly/shared-everything-threads#76.
@tlively tlively requested a review from kripken July 17, 2024 20:54
@tlively tlively merged commit 4dee6fe into main Jul 17, 2024
13 checks passed
@tlively tlively deleted the threads-revert-mixed-refeq branch July 17, 2024 22:02
@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