Let X and Y be types. Previously, functions F(X, Y) and G(Y, X) had
the same hash value because their hash values are computed as follows:
hash(F) = hash(X) + hash(Y) hash(G) = hash(Y) + hash(X)
This patch fixes the issue by using hash_combine.
Differential D43856
[WebAssembly] Improve WasmSignatureDenseMapInfo. ruiu on Feb 27 2018, 7:54 PM. Authored by
Details Let X and Y be types. Previously, functions F(X, Y) and G(Y, X) had hash(F) = hash(X) + hash(Y) hash(G) = hash(Y) + hash(X) This patch fixes the issue by using hash_combine.
Diff Detail
|