Bug 159037

Summary: TypeProfiler and TypeProfilerLog don't play nicely with the concurrent JIT
Product: WebKit Reporter: Saam Barati <saam>
Component: JavaScriptCoreAssignee: Saam Barati <saam>
Status: RESOLVED FIXED    
Severity: Normal CC: bburg, benjamin, commit-queue, fpizlo, ggaren, gskachkov, joepeck, keith_miller, mark.lam, msaboff, nvasilyev, sukolsak, timothy, webkit-bug-importer, ysuzuki
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
patch
benjamin: review+
patch for landing
none
patch for landing that builds none

Saam Barati
Reported 2016-06-22 13:52:16 PDT
We process the log on a background compiler thread, and this leads to a bad time
Attachments
patch (55.84 KB, patch)
2016-06-22 16:33 PDT, Saam Barati
benjamin: review+
patch for landing (55.86 KB, patch)
2016-06-22 16:57 PDT, Saam Barati
no flags
patch for landing that builds (56.04 KB, patch)
2016-06-22 17:46 PDT, Saam Barati
no flags
Saam Barati
Comment 1 2016-06-22 16:06:06 PDT
Saam Barati
Comment 2 2016-06-22 16:33:17 PDT
WebKit Commit Bot
Comment 3 2016-06-22 16:35:09 PDT
Attachment 281882 [details] did not pass style-queue: ERROR: Source/JavaScriptCore/runtime/TypeSet.cpp:52: This { should be at the end of the previous line [whitespace/braces] [4] Total errors found: 1 in 11 files If any of these errors are false positives, please file a bug against check-webkit-style.
Benjamin Poulain
Comment 4 2016-06-22 16:45:22 PDT
Comment on attachment 281882 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=281882&action=review > Source/JavaScriptCore/runtime/TypeSet.h:106 > +public: > + ConcurrentJITLock m_lock; Why put the lock in the middle instead of in the public declarations above?
Saam Barati
Comment 5 2016-06-22 16:51:03 PDT
Comment on attachment 281882 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=281882&action=review >> Source/JavaScriptCore/runtime/TypeSet.h:106 >> + ConcurrentJITLock m_lock; > > Why put the lock in the middle instead of in the public declarations above? They fit into 32-bits this way. This won't matter for 64 bit paltforms, but will save 32-bits in TypeSet size for 32-bit platforms. I guess I could reorder the fields like so to prevent the private/public break: ``` public: ... methods and such ... Lock m_lock; private: bool m_isOverflown; RuntimeTypeMask ... .... ```
Saam Barati
Comment 6 2016-06-22 16:51:49 PDT
Comment on attachment 281882 [details] patch View in context: https://bugs.webkit.org/attachment.cgi?id=281882&action=review >>> Source/JavaScriptCore/runtime/TypeSet.h:106 >>> + ConcurrentJITLock m_lock; >> >> Why put the lock in the middle instead of in the public declarations above? > > They fit into 32-bits this way. This won't matter for 64 bit paltforms, but will save 32-bits in TypeSet size for 32-bit platforms. > I guess I could reorder the fields like so to prevent the private/public break: > ``` > public: > ... methods and such > ... > Lock m_lock; > private: > bool m_isOverflown; > RuntimeTypeMask ... > .... > ``` I'll go with this reordering.
Saam Barati
Comment 7 2016-06-22 16:57:52 PDT
Created attachment 281886 [details] patch for landing
WebKit Commit Bot
Comment 8 2016-06-22 16:59:22 PDT
Attachment 281886 [details] did not pass style-queue: ERROR: Source/JavaScriptCore/runtime/TypeSet.cpp:52: This { should be at the end of the previous line [whitespace/braces] [4] Total errors found: 1 in 11 files If any of these errors are false positives, please file a bug against check-webkit-style.
Saam Barati
Comment 9 2016-06-22 17:46:14 PDT
Created attachment 281890 [details] patch for landing that builds
WebKit Commit Bot
Comment 10 2016-06-22 17:47:54 PDT
Attachment 281890 [details] did not pass style-queue: ERROR: Source/JavaScriptCore/runtime/TypeSet.cpp:52: This { should be at the end of the previous line [whitespace/braces] [4] Total errors found: 1 in 11 files If any of these errors are false positives, please file a bug against check-webkit-style.
WebKit Commit Bot
Comment 11 2016-06-22 20:24:31 PDT
Comment on attachment 281890 [details] patch for landing that builds Clearing flags on attachment: 281890 Committed r202364: <http://trac.webkit.org/changeset/202364>
WebKit Commit Bot
Comment 12 2016-06-22 20:24:37 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.