Bug 192647

Summary: The JSC shell should listen for memory pressure events and respond to them
Product: WebKit Reporter: Saam Barati <saam>
Component: JavaScriptCoreAssignee: Saam Barati <saam>
Status: RESOLVED FIXED    
Severity: Normal CC: benjamin, cdumez, cmarcelo, commit-queue, dbates, ews-watchlist, fpizlo, ggaren, gskachkov, jlewis3, keith_miller, mark.lam, msaboff, rmorisset, ryanhaddad, ticaiolima, tsavell, webkit-bug-importer, ysuzuki
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=192649
Attachments:
Description Flags
patch
keith_miller: review+
patch for landing none

Saam Barati
Reported 2018-12-12 16:33:19 PST
...
Attachments
patch (12.72 KB, patch)
2018-12-12 16:59 PST, Saam Barati
keith_miller: review+
patch for landing (12.70 KB, patch)
2018-12-13 18:31 PST, Saam Barati
no flags
Saam Barati
Comment 1 2018-12-12 16:59:10 PST
EWS Watchlist
Comment 2 2018-12-12 17:01:04 PST
Attachment 357197 [details] did not pass style-queue: ERROR: Source/WTF/wtf/MemoryPressureHandler.h:98: Extra space before ) [whitespace/parens] [2] Total errors found: 1 in 8 files If any of these errors are false positives, please file a bug against check-webkit-style.
Saam Barati
Comment 3 2018-12-12 17:02:06 PST
Comment on attachment 357197 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=357197&action=review > Source/WTF/wtf/MemoryPressureHandler.h:98 > + WTF_EXPORT_PRIVATE void setDispatchQueue(dispatch_queue_t ); will fix style here
Keith Miller
Comment 4 2018-12-12 17:11:24 PST
Comment on attachment 357197 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=357197&action=review r=me. Can we do this for API users too? > Source/WTF/wtf/MemoryPressureHandler.cpp:310 > + dispatch_retain(queue); > + if (m_dispatchQueue) > + dispatch_release(m_dispatchQueue); > + m_dispatchQueue = queue; If there's an easy way to assert this isn't called after installation I think we should do so. Otherwise maybe put a comment.
Saam Barati
Comment 5 2018-12-12 17:16:37 PST
(In reply to Keith Miller from comment #4) > Comment on attachment 357197 [details] > patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=357197&action=review > > r=me. Can we do this for API users too? Yeah we should. I'll open a followup to do so. > > > Source/WTF/wtf/MemoryPressureHandler.cpp:310 > > + dispatch_retain(queue); > > + if (m_dispatchQueue) > > + dispatch_release(m_dispatchQueue); > > + m_dispatchQueue = queue; > > If there's an easy way to assert this isn't called after installation I > think we should do so. Otherwise maybe put a comment.
Saam Barati
Comment 6 2018-12-13 18:31:28 PST
Created attachment 357281 [details] patch for landing
WebKit Commit Bot
Comment 7 2018-12-13 20:05:49 PST
Comment on attachment 357281 [details] patch for landing Clearing flags on attachment: 357281 Committed r239195: <https://trac.webkit.org/changeset/239195>
WebKit Commit Bot
Comment 8 2018-12-13 20:05:51 PST
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 9 2018-12-13 20:06:27 PST
Truitt Savell
Comment 10 2018-12-14 09:01:23 PST
The revision from https://trac.webkit.org/changeset/239195/webkit May have caused Sierra WK1 Debug testing to become very flakey. This queue appears to have begun flaking 10-40 tests a run with some tests being constant timeouts which started around this patch https://build.webkit.org/builders/Apple%20Sierra%20Debug%20WK1%20(Tests)/builds/10714 Most of the effected tests seem to be timeouts. A test that is constantly timing out: https://webkit-test-results.webkit.org/dashboards/flakiness_dashboard.html#showAllRuns=true&tests=fast%2Ftext%2Femoji-num-glyphs.html Run History: https://build.webkit.org/builders/Apple%20Sierra%20Debug%20WK1%20(Tests)?numbuilds=50
Saam Barati
Comment 11 2018-12-14 09:26:09 PST
(In reply to Truitt Savell from comment #10) > The revision from https://trac.webkit.org/changeset/239195/webkit > > May have caused Sierra WK1 Debug testing to become very flakey. This queue > appears to have begun flaking 10-40 tests a run with some tests being > constant timeouts which started around this patch > > https://build.webkit.org/builders/Apple%20Sierra%20Debug%20WK1%20(Tests)/ > builds/10714 > > Most of the effected tests seem to be timeouts. > > A test that is constantly timing out: > https://webkit-test-results.webkit.org/dashboards/flakiness_dashboard. > html#showAllRuns=true&tests=fast%2Ftext%2Femoji-num-glyphs.html > > Run History: > https://build.webkit.org/builders/ > Apple%20Sierra%20Debug%20WK1%20(Tests)?numbuilds=50 Not really sure how that could be. This should only have an effect on the JSC shell. Are there other changes in the range?
Truitt Savell
Comment 12 2018-12-14 13:04:30 PST
It looks like it was a bot related issue effecting both the bots on that queue. Sorry for the noise.
Note You need to log in before you can comment on or make changes to this bug.