Skip to content

Conversation

tlively
Copy link
Member

@tlively tlively commented Jul 16, 2024

When creating a new subtype, make sure to copy the supertype's
shareability.

tlively added 2 commits July 16, 2024 11:17
Normally, values of different types can never compare equal to each other, but since i31refs are not actually allocations, `ref.eq` has no way to differentiate a shared i31ref and an unshared i31ref with the same value, so it will report them as equal. Update the implementation of value equality to reflect this correctly.
When creating a new subtype, make sure to copy the supertype's shareability.
@tlively tlively requested a review from kripken July 16, 2024 18:55
Base automatically changed from threads-eq-i31 to main July 16, 2024 20:30
@tlively tlively merged commit 53b7dd1 into main Jul 16, 2024
@tlively tlively deleted the threads-shared-typessa branch July 16, 2024 20:30
@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

2 participants