Bug 197531

Summary: Don't OSR enter into an FTL CodeBlock that has been jettisoned
Product: WebKit Reporter: Saam Barati <saam>
Component: JavaScriptCoreAssignee: Saam Barati <saam>
Status: RESOLVED FIXED    
Severity: Normal CC: benjamin, commit-queue, ews-watchlist, fpizlo, ggaren, gskachkov, guijemont, keith_miller, mark.lam, msaboff, rmorisset, ticaiolima, tzagallo, webkit-bug-importer, ysuzuki
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
patch
ysuzuki: review+, ews-watchlist: commit-queue-
Archive of layout-test-results from ews215 for win-future
none
patch
ews-watchlist: commit-queue-
Archive of layout-test-results from ews211 for win-future
none
patch
none
patch for landing
none
Archive of layout-test-results from ews210 for win-future none

Description Saam Barati 2019-05-02 14:46:17 PDT
...
Comment 1 Saam Barati 2019-05-02 14:46:53 PDT
<rdar://problem/50162379>
Comment 2 Saam Barati 2019-05-02 14:51:00 PDT
Created attachment 368824 [details]
patch
Comment 3 EWS Watchlist 2019-05-02 16:35:52 PDT
Comment on attachment 368824 [details]
patch

Attachment 368824 [details] did not pass win-ews (win):
Output: https://webkit-queues.webkit.org/results/12067388

New failing tests:
legacy-animation-engine/fast/layers/no-clipping-overflow-hidden-hardware-acceleration.html
Comment 4 EWS Watchlist 2019-05-02 16:35:53 PDT
Created attachment 368843 [details]
Archive of layout-test-results from ews215 for win-future

The attached test failures were seen while running run-webkit-tests on the win-ews.
Bot: ews215  Port: win-future  Platform: CYGWIN_NT-10.0-17763-3.0.5-338.x86_64-x86_64-64bit
Comment 5 Yusuke Suzuki 2019-05-02 16:42:22 PDT
Comment on attachment 368824 [details]
patch

View in context: https://bugs.webkit.org/attachment.cgi?id=368824&action=review

r=me

> Source/JavaScriptCore/ftl/FTLOSREntry.cpp:52
> +    if (!entryCode->dfgCommon()->isStillValid) {

I really want to clear the OSR entry block in the parent DFGCode when the OSR entry block is invalidated...
Can we do that thing?
Comment 6 Saam Barati 2019-05-02 17:13:57 PDT
(In reply to Yusuke Suzuki from comment #5)
> Comment on attachment 368824 [details]
> patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=368824&action=review
> 
> r=me
> 
> > Source/JavaScriptCore/ftl/FTLOSREntry.cpp:52
> > +    if (!entryCode->dfgCommon()->isStillValid) {
> 
> I really want to clear the OSR entry block in the parent DFGCode when the
> OSR entry block is invalidated...
> Can we do that thing?

Yeah I wanted to do that to. It seemed slightly awkward to do object model wise but let me look into it.
Comment 7 Saam Barati 2019-05-02 18:12:47 PDT
Created attachment 368858 [details]
patch
Comment 8 EWS Watchlist 2019-05-03 00:21:06 PDT
Comment on attachment 368858 [details]
patch

Attachment 368858 [details] did not pass win-ews (win):
Output: https://webkit-queues.webkit.org/results/12079225

New failing tests:
svg/dynamic-updates/SVGLinearGradientElement-svgdom-href-prop.html
svg/repaint/remove-border-property-on-root.html
Comment 9 EWS Watchlist 2019-05-03 00:21:08 PDT
Created attachment 368908 [details]
Archive of layout-test-results from ews211 for win-future

The attached test failures were seen while running run-webkit-tests on the win-ews.
Bot: ews211  Port: win-future  Platform: CYGWIN_NT-10.0-17763-3.0.5-338.x86_64-x86_64-64bit
Comment 10 Saam Barati 2019-05-06 15:12:42 PDT
Yusuke and I spoke offline. We're going to go with the simpler, earlier version of this patch.
Comment 11 Saam Barati 2019-05-06 15:14:18 PDT
Created attachment 369174 [details]
patch
Comment 12 Saam Barati 2019-05-06 15:20:27 PDT
Created attachment 369176 [details]
patch for landing
Comment 13 EWS Watchlist 2019-05-07 04:37:36 PDT
Comment on attachment 369176 [details]
patch for landing

Attachment 369176 [details] did not pass win-ews (win):
Output: https://webkit-queues.webkit.org/results/12122413

New failing tests:
http/tests/css/filters-on-iframes.html
Comment 14 EWS Watchlist 2019-05-07 04:37:38 PDT
Created attachment 369275 [details]
Archive of layout-test-results from ews210 for win-future

The attached test failures were seen while running run-webkit-tests on the win-ews.
Bot: ews210  Port: win-future  Platform: CYGWIN_NT-10.0-17763-3.0.5-338.x86_64-x86_64-64bit
Comment 15 WebKit Commit Bot 2019-05-07 10:41:49 PDT
Comment on attachment 369176 [details]
patch for landing

Clearing flags on attachment: 369176

Committed r245017: <https://trac.webkit.org/changeset/245017>
Comment 16 WebKit Commit Bot 2019-05-07 10:41:51 PDT
All reviewed patches have been landed.  Closing bug.