RESOLVED FIXED 195490
DFG::Worklist can be shrunk by 16 bytes
https://bugs.webkit.org/show_bug.cgi?id=195490
Summary DFG::Worklist can be shrunk by 16 bytes
Robin Morisset
Reported 2019-03-08 15:55:02 PST
simply by reordering the fields to avoid padding.
Attachments
Patch (2.38 KB, patch)
2019-03-08 15:56 PST, Robin Morisset
darin: review+
rmorisset: commit-queue-
Archive of layout-test-results from ews105 for mac-highsierra-wk2 (2.78 MB, application/zip)
2019-03-09 01:41 PST, EWS Watchlist
no flags
Archive of layout-test-results from ews201 for win-future (12.95 MB, application/zip)
2019-03-11 16:31 PDT, EWS Watchlist
no flags
Patch (2.36 KB, patch)
2019-03-12 10:25 PDT, Robin Morisset
no flags
Robin Morisset
Comment 1 2019-03-08 15:56:22 PST
EWS Watchlist
Comment 2 2019-03-09 01:41:39 PST
Comment on attachment 364085 [details] Patch Attachment 364085 [details] did not pass mac-wk2-ews (mac-wk2): Output: https://webkit-queues.webkit.org/results/11437253 New failing tests: accessibility/mac/selection-notification-focus-change.html
EWS Watchlist
Comment 3 2019-03-09 01:41:41 PST
Created attachment 364124 [details] Archive of layout-test-results from ews105 for mac-highsierra-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews105 Port: mac-highsierra-wk2 Platform: Mac OS X 10.13.6
Darin Adler
Comment 4 2019-03-10 15:30:36 PDT
Comment on attachment 364085 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=364085&action=review > Source/JavaScriptCore/dfg/DFGWorklist.cpp:187 > + : m_numberOfActiveThreads(0) Initialize in class definition instead?
Robin Morisset
Comment 5 2019-03-11 10:18:17 PDT
Comment on attachment 364085 [details] Patch Tons of other unrelated patches have the same test failure, so I am pretty sure it is just a flaky test.
Robin Morisset
Comment 6 2019-03-11 10:18:39 PDT
Comment on attachment 364085 [details] Patch Missed the comment above
Robin Morisset
Comment 7 2019-03-11 10:25:35 PDT
(In reply to Darin Adler from comment #4) > Comment on attachment 364085 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=364085&action=review > > > Source/JavaScriptCore/dfg/DFGWorklist.cpp:187 > > + : m_numberOfActiveThreads(0) > > Initialize in class definition instead? The initialization includes ", m_threadName(createWorklistName(WTFMove(tierName)))", and createWorklistName is a static function that is only available within DFGWorklist.cpp. I could move it along with the initialization code to the class definition in DFGWorklist.h. What would be the expected benefit from doing this?
Darin Adler
Comment 8 2019-03-11 12:02:59 PDT
Comment on attachment 364085 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=364085&action=review >>> Source/JavaScriptCore/dfg/DFGWorklist.cpp:187 >>> + : m_numberOfActiveThreads(0) >> >> Initialize in class definition instead? > > The initialization includes > ", m_threadName(createWorklistName(WTFMove(tierName)))", and createWorklistName is a static function that is only available within DFGWorklist.cpp. > I could move it along with the initialization code to the class definition in DFGWorklist.h. What would be the expected benefit from doing this? Comment was only about m_numberOfActiveThreads, not the rest of the initialization.
EWS Watchlist
Comment 9 2019-03-11 16:31:46 PDT
Comment on attachment 364085 [details] Patch Attachment 364085 [details] did not pass win-ews (win): Output: https://webkit-queues.webkit.org/results/11461947 New failing tests: http/tests/cache/memory-cache-pruning.html
EWS Watchlist
Comment 10 2019-03-11 16:31:59 PDT
Created attachment 364307 [details] Archive of layout-test-results from ews201 for win-future The attached test failures were seen while running run-webkit-tests on the win-ews. Bot: ews201 Port: win-future Platform: CYGWIN_NT-6.1-2.10.0-0.325-5-3-x86_64-64bit
Robin Morisset
Comment 11 2019-03-12 10:25:02 PDT
Created attachment 364401 [details] Patch Initialized m_numberOfActiveThreads in the class definition per Darin's suggestion.
WebKit Commit Bot
Comment 12 2019-03-14 09:41:56 PDT
Comment on attachment 364401 [details] Patch Clearing flags on attachment: 364401 Committed r242944: <https://trac.webkit.org/changeset/242944>
WebKit Commit Bot
Comment 13 2019-03-14 09:41:57 PDT
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 14 2019-03-14 09:42:38 PDT
Note You need to log in before you can comment on or make changes to this bug.