Bug 196396

Summary: UnlinkedCodeBlock constructor from cache should initialize m_didOptimize
Product: WebKit Reporter: Tadeu Zagallo <tzagallo>
Component: JavaScriptCoreAssignee: Tadeu Zagallo <tzagallo>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, ews-watchlist, keith_miller, mark.lam, msaboff, saam, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Tadeu Zagallo 2019-03-29 04:18:43 PDT
...
Comment 1 Tadeu Zagallo 2019-03-29 04:21:21 PDT
Created attachment 366265 [details]
Patch
Comment 2 Saam Barati 2019-04-03 17:12:53 PDT
Comment on attachment 366265 [details]
Patch

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

r=me

I'm not sure how you found this, but I'm starting to think running all of JetStream 2 with caching could be a good test to add.

> Source/JavaScriptCore/ChangeLog:9
> +        The UnlinkedCodeBlock constructor in CachedTypes was missing the initialization
> +        for m_didOptimize, which leads to crashes in CodeBlock::thresholdForJIT.

Please add a test.
Comment 3 WebKit Commit Bot 2019-04-04 07:15:26 PDT
Comment on attachment 366265 [details]
Patch

Clearing flags on attachment: 366265

Committed r243867: <https://trac.webkit.org/changeset/243867>
Comment 4 WebKit Commit Bot 2019-04-04 07:15:27 PDT
All reviewed patches have been landed.  Closing bug.
Comment 5 Radar WebKit Bug Importer 2019-04-04 07:16:22 PDT
<rdar://problem/49605973>
Comment 6 Saam Barati 2019-04-04 07:17:17 PDT
(In reply to WebKit Commit Bot from comment #3)
> Comment on attachment 366265 [details]
> Patch
> 
> Clearing flags on attachment: 366265
> 
> Committed r243867: <https://trac.webkit.org/changeset/243867>

No test?
Comment 7 Tadeu Zagallo 2019-04-04 07:19:27 PDT
(In reply to Saam Barati from comment #6)
> (In reply to WebKit Commit Bot from comment #3)
> > Comment on attachment 366265 [details]
> > Patch
> > 
> > Clearing flags on attachment: 366265
> > 
> > Committed r243867: <https://trac.webkit.org/changeset/243867>
> 
> No test?

Oh, I'm sorry, I don't know how I missed your comment. I'll add a follow-up patch do this bug.