Skip to content

Commit 3afb61a

Browse files
mralephCommit Queue
authored andcommitted
[vm] Use Hash as TypeArguments canonicalization hash
Fixes #55666 TEST=ci Change-Id: Ib7d53e14f5be0f56851576dec2e6a3f136b41e44 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/366301 Commit-Queue: Slava Egorov <[email protected]> Reviewed-by: Ryan Macnak <[email protected]>
1 parent 0307423 commit 3afb61a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

runtime/vm/object.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8970,10 +8970,7 @@ class TypeArguments : public Instance {
89708970
(len * kBytesPerElement));
89718971
}
89728972

8973-
virtual uint32_t CanonicalizeHash() const {
8974-
// Hash() is not stable until finalization is done.
8975-
return 0;
8976-
}
8973+
virtual uint32_t CanonicalizeHash() const { return Hash(); }
89778974
uword Hash() const;
89788975
uword HashForRange(intptr_t from_index, intptr_t len) const;
89798976
static intptr_t hash_offset() {

0 commit comments

Comments
 (0)