Bug 60933 - Global object initialization is expensive
Summary: Global object initialization is expensive
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Geoffrey Garen
URL:
Keywords:
Depends on: 60944
Blocks:
  Show dependency treegraph
 
Reported: 2011-05-16 16:34 PDT by Geoffrey Garen
Modified: 2011-05-17 20:26 PDT (History)
7 users (show)

See Also:


Attachments
Patch (84.50 KB, patch)
2011-05-16 16:44 PDT, Geoffrey Garen
no flags Details | Formatted Diff | Diff
Patch (95.79 KB, patch)
2011-05-16 20:01 PDT, Geoffrey Garen
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Geoffrey Garen 2011-05-16 16:34:47 PDT
Global object initialization is expensive
Comment 1 Geoffrey Garen 2011-05-16 16:44:07 PDT
Created attachment 93713 [details]
Patch
Comment 2 WebKit Review Bot 2011-05-16 16:46:55 PDT
Attachment 93713 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/JavaScriptCore/ChangeLog', u'Source..." exit_code: 1

Source/JavaScriptCore/runtime/BooleanPrototype.cpp:37:  Alphabetical sorting problem.  [build/include_order] [4]
Source/JavaScriptCore/runtime/ArrayConstructor.cpp:40:  Alphabetical sorting problem.  [build/include_order] [4]
Source/JavaScriptCore/runtime/StringConstructor.cpp:36:  Alphabetical sorting problem.  [build/include_order] [4]
Source/JavaScriptCore/runtime/RegExpPrototype.cpp:48:  Alphabetical sorting problem.  [build/include_order] [4]
Source/JavaScriptCore/runtime/NumberPrototype.cpp:46:  Alphabetical sorting problem.  [build/include_order] [4]
Source/JavaScriptCore/runtime/ErrorPrototype.cpp:39:  Alphabetical sorting problem.  [build/include_order] [4]
Total errors found: 6 in 29 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Early Warning System Bot 2011-05-16 17:07:17 PDT
Comment on attachment 93713 [details]
Patch

Attachment 93713 [details] did not pass qt-ews (qt):
Output: http://queues.webkit.org/results/8704145
Comment 4 Collabora GTK+ EWS bot 2011-05-16 19:49:30 PDT
Comment on attachment 93713 [details]
Patch

Attachment 93713 [details] did not pass gtk-ews (gtk):
Output: http://queues.webkit.org/results/8708075
Comment 5 Geoffrey Garen 2011-05-16 20:01:12 PDT
Created attachment 93733 [details]
Patch
Comment 6 Geoffrey Garen 2011-05-16 20:01:28 PDT
New patch for the EWS bots to chew on.
Comment 7 WebKit Review Bot 2011-05-16 20:03:21 PDT
Attachment 93733 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/JavaScriptCore/ChangeLog', u'Source..." exit_code: 1

Source/JavaScriptCore/runtime/BooleanPrototype.cpp:37:  Alphabetical sorting problem.  [build/include_order] [4]
Source/JavaScriptCore/runtime/ArrayConstructor.cpp:40:  Alphabetical sorting problem.  [build/include_order] [4]
Source/JavaScriptCore/runtime/StringConstructor.cpp:36:  Alphabetical sorting problem.  [build/include_order] [4]
Source/JavaScriptCore/runtime/RegExpPrototype.cpp:48:  Alphabetical sorting problem.  [build/include_order] [4]
Source/JavaScriptCore/runtime/NumberPrototype.cpp:46:  Alphabetical sorting problem.  [build/include_order] [4]
Source/JavaScriptCore/runtime/ErrorPrototype.cpp:39:  Alphabetical sorting problem.  [build/include_order] [4]
Total errors found: 6 in 34 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 8 Geoffrey Garen 2011-05-16 20:04:17 PDT
Comment on attachment 93733 [details]
Patch

Marking r+ to get this out of the review queue.
Comment 9 Geoffrey Garen 2011-05-16 21:08:26 PDT
Committed r86653: <http://trac.webkit.org/changeset/86653>
Comment 10 Yuta Kitamura 2011-05-16 22:02:53 PDT
Your change caused a lot of regressions on Windows bots:
http://build.webkit.org/builders/Windows%20XP%20Debug%20%28Tests%29/builds/28715
http://build.webkit.org/builders/Windows%207%20Release%20%28Tests%29/builds/12917

(And your change seems to be reviewed by yourself, which I don't know is the right thing to do.)
Comment 11 Yuta Kitamura 2011-05-16 22:59:27 PDT
Other bots are also failing (EFL compile, Leopard/Snow Leopard tests), so I'm going to roll out this change.
Comment 12 Alexey Proskuryakov 2011-05-16 23:21:32 PDT
Are we talking about a few nanoseconds per engine instance (ignoring worker threads for a moment), or about something significant?
Comment 13 Yuta Kitamura 2011-05-16 23:25:51 PDT
Rollout patch has landed. I appreciate your understanding about keeping our bots green.

Error details:

Windows
http://build.webkit.org/builders/Windows%20XP%20Debug%20%28Tests%29/builds/28715 (Layout test crashes, jscore-test 962 failures)

Leopard, SnowLeopard
http://build.webkit.org/builders/SnowLeopard%20Intel%20Release%20%28Tests%29/builds/29391 (Sputnik failures)

EFL
http://build.webkit.org/builders/EFL%20Linux%20Release%20%28Build%29/builds/14457 (Compile error)
Comment 14 Geoffrey Garen 2011-05-17 19:40:10 PDT
Committed r86727: <http://trac.webkit.org/changeset/86727>
Comment 15 Geoffrey Garen 2011-05-17 20:26:05 PDT
Looks like the EFL builder is broken. I filed https://bugs.webkit.org/show_bug.cgi?id=61018 to track that.