RESOLVED FIXED 226027
The test of SmallSet.cpp should pass the right HashTrait to the HashSet it uses as a reference
https://bugs.webkit.org/show_bug.cgi?id=226027
Summary The test of SmallSet.cpp should pass the right HashTrait to the HashSet it us...
Robin Morisset
Reported 2021-05-20 10:29:40 PDT
SmallSet allows all values except for the max value. So we test it on small values, including 0. HashSet by default forbids 0, so it made the test crash. We can trivially fix it by passing UnsignedWithZeroKeyHashTraits, which allows everything which is not max() or max()-1
Attachments
Patch (1.34 KB, patch)
2021-05-20 10:31 PDT, Robin Morisset
mark.lam: review+
mark.lam: commit-queue-
Patch for landing (1.58 KB, patch)
2021-05-20 12:09 PDT, Robin Morisset
no flags
Robin Morisset
Comment 1 2021-05-20 10:31:22 PDT
Robin Morisset
Comment 2 2021-05-20 10:32:28 PDT
Robin Morisset
Comment 3 2021-05-20 10:35:07 PDT
*** Bug 225978 has been marked as a duplicate of this bug. ***
Mark Lam
Comment 4 2021-05-20 11:33:28 PDT
Comment on attachment 429185 [details] Patch r=me
Mark Lam
Comment 5 2021-05-20 11:34:58 PDT
(In reply to Robin Morisset from comment #0) > SmallSet allows all values except for the max value. > So we test it on small values, including 0. > > HashSet by default forbids 0, so it made the test crash. > We can trivially fix it by passing UnsignedWithZeroKeyHashTraits, which > allows everything which is not max() or max()-1 You should put this explanation in the ChangeLog.
Robin Morisset
Comment 6 2021-05-20 12:09:51 PDT
Created attachment 429202 [details] Patch for landing
EWS
Comment 7 2021-05-20 12:34:40 PDT
Committed r277817 (237964@main): <https://commits.webkit.org/237964@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 429202 [details].
Note You need to log in before you can comment on or make changes to this bug.