NEW 197000
Make roundUpToPowerOfTwo work with Checked arithmetic classes
https://bugs.webkit.org/show_bug.cgi?id=197000
Summary Make roundUpToPowerOfTwo work with Checked arithmetic classes
Ryosuke Niwa
Reported 2019-04-16 22:20:20 PDT
In order to make HashTable code safe, we need to make roundUpToPowerOfTwo work with Checked<T, U> classes.
Attachments
Patch (21.15 KB, patch)
2019-04-16 22:30 PDT, Ryosuke Niwa
no flags
GCC build fix attempt (21.28 KB, patch)
2019-04-16 22:47 PDT, Ryosuke Niwa
ews-watchlist: commit-queue-
Archive of layout-test-results from ews112 for mac-highsierra (456.85 KB, application/zip)
2019-04-17 00:01 PDT, EWS Watchlist
no flags
Archive of layout-test-results from ews123 for ios-simulator-wk2 (117.55 MB, application/zip)
2019-04-17 00:29 PDT, EWS Watchlist
no flags
Fixed the tests (22.13 KB, patch)
2019-04-17 19:09 PDT, Ryosuke Niwa
rniwa: review?
Ryosuke Niwa
Comment 1 2019-04-16 22:30:41 PDT
EWS Watchlist
Comment 2 2019-04-16 22:32:41 PDT
Attachment 367613 [details] did not pass style-queue: ERROR: Source/WTF/wtf/CheckedArithmetic.h:395: This { should be at the end of the previous line [whitespace/braces] [4] ERROR: Source/WTF/wtf/CheckedArithmetic.h:463: This { should be at the end of the previous line [whitespace/braces] [4] ERROR: Source/WTF/wtf/CheckedArithmetic.h:471: This { should be at the end of the previous line [whitespace/braces] [4] ERROR: Source/WTF/wtf/CheckedArithmetic.h:1002: Missing spaces around | [whitespace/operators] [3] ERROR: Source/WTF/wtf/CheckedArithmetic.h:1040: Missing spaces around | [whitespace/operators] [3] ERROR: Source/WTF/wtf/CheckedArithmetic.h:1060: Missing spaces around | [whitespace/operators] [3] ERROR: Source/WTF/wtf/CheckedArithmetic.h:1123: This { should be at the end of the previous line [whitespace/braces] [4] Total errors found: 7 in 7 files If any of these errors are false positives, please file a bug against check-webkit-style.
Ryosuke Niwa
Comment 3 2019-04-16 22:47:21 PDT
Created attachment 367614 [details] GCC build fix attempt
EWS Watchlist
Comment 4 2019-04-16 22:48:48 PDT
Attachment 367614 [details] did not pass style-queue: ERROR: Source/WTF/wtf/CheckedArithmetic.h:395: This { should be at the end of the previous line [whitespace/braces] [4] ERROR: Source/WTF/wtf/CheckedArithmetic.h:463: This { should be at the end of the previous line [whitespace/braces] [4] ERROR: Source/WTF/wtf/CheckedArithmetic.h:471: This { should be at the end of the previous line [whitespace/braces] [4] ERROR: Source/WTF/wtf/CheckedArithmetic.h:1002: Missing spaces around | [whitespace/operators] [3] ERROR: Source/WTF/wtf/CheckedArithmetic.h:1040: Missing spaces around | [whitespace/operators] [3] ERROR: Source/WTF/wtf/CheckedArithmetic.h:1060: Missing spaces around | [whitespace/operators] [3] ERROR: Source/WTF/wtf/CheckedArithmetic.h:1123: This { should be at the end of the previous line [whitespace/braces] [4] Total errors found: 7 in 7 files If any of these errors are false positives, please file a bug against check-webkit-style.
EWS Watchlist
Comment 5 2019-04-17 00:01:20 PDT
Comment on attachment 367614 [details] GCC build fix attempt Attachment 367614 [details] did not pass mac-debug-ews (mac): Output: https://webkit-queues.webkit.org/results/11896632 Number of test failures exceeded the failure limit.
EWS Watchlist
Comment 6 2019-04-17 00:01:23 PDT
Created attachment 367617 [details] Archive of layout-test-results from ews112 for mac-highsierra The attached test failures were seen while running run-webkit-tests on the mac-debug-ews. Bot: ews112 Port: mac-highsierra Platform: Mac OS X 10.13.6
EWS Watchlist
Comment 7 2019-04-17 00:29:33 PDT
Comment on attachment 367614 [details] GCC build fix attempt Attachment 367614 [details] did not pass ios-sim-ews (ios-simulator-wk2): Output: https://webkit-queues.webkit.org/results/11896717 Number of test failures exceeded the failure limit.
EWS Watchlist
Comment 8 2019-04-17 00:29:38 PDT
Created attachment 367618 [details] Archive of layout-test-results from ews123 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews123 Port: ios-simulator-wk2 Platform: Mac OS X 10.13.6
Ryosuke Niwa
Comment 9 2019-04-17 01:00:31 PDT
Comment on attachment 367614 [details] GCC build fix attempt Oops, looks like I broke things.
Ryosuke Niwa
Comment 10 2019-04-17 19:09:00 PDT
Created attachment 367713 [details] Fixed the tests
EWS Watchlist
Comment 11 2019-04-17 19:11:40 PDT
Attachment 367713 [details] did not pass style-queue: ERROR: Source/WTF/wtf/CheckedArithmetic.h:395: This { should be at the end of the previous line [whitespace/braces] [4] ERROR: Source/WTF/wtf/CheckedArithmetic.h:463: This { should be at the end of the previous line [whitespace/braces] [4] ERROR: Source/WTF/wtf/CheckedArithmetic.h:471: This { should be at the end of the previous line [whitespace/braces] [4] ERROR: Source/WTF/wtf/CheckedArithmetic.h:1002: Missing spaces around | [whitespace/operators] [3] ERROR: Source/WTF/wtf/CheckedArithmetic.h:1040: Missing spaces around | [whitespace/operators] [3] ERROR: Source/WTF/wtf/CheckedArithmetic.h:1060: Missing spaces around | [whitespace/operators] [3] ERROR: Source/WTF/wtf/CheckedArithmetic.h:1123: This { should be at the end of the previous line [whitespace/braces] [4] Total errors found: 7 in 8 files If any of these errors are false positives, please file a bug against check-webkit-style.
Saam Barati
Comment 12 2019-04-17 23:39:46 PDT
Comment on attachment 367713 [details] Fixed the tests This seems like way more code than just doing the dumb way of checking for unsigned overflow...
Note You need to log in before you can comment on or make changes to this bug.