Skip to content

Commit

Permalink
[vm] Use Hash as TypeArguments canonicalization hash
Browse files Browse the repository at this point in the history
Fixes #55666

TEST=ci

Change-Id: Ib7d53e14f5be0f56851576dec2e6a3f136b41e44
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/366301
Commit-Queue: Slava Egorov <vegorov@google.com>
Reviewed-by: Ryan Macnak <rmacnak@google.com>
  • Loading branch information
mraleph authored and Commit Queue committed May 15, 2024
1 parent 0307423 commit 3afb61a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions runtime/vm/object.h
Original file line number Diff line number Diff line change
Expand Up @@ -8970,10 +8970,7 @@ class TypeArguments : public Instance {
(len * kBytesPerElement));
}

virtual uint32_t CanonicalizeHash() const {
// Hash() is not stable until finalization is done.
return 0;
}
virtual uint32_t CanonicalizeHash() const { return Hash(); }
uword Hash() const;
uword HashForRange(intptr_t from_index, intptr_t len) const;
static intptr_t hash_offset() {
Expand Down

0 comments on commit 3afb61a

Please sign in to comment.