Bug 75977

Summary: [GTK] Linking of big binaries should be serialized to avoid thrashing
Product: WebKit Reporter: Gustavo Noronha (kov) <gustavo>
Component: WebKitGTKAssignee: Gustavo Noronha (kov) <gustavo>
Status: RESOLVED FIXED    
Severity: Normal CC: mrobinson, pnormand, xan.lopez
Priority: P2 Keywords: Gtk
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Proposed patch mrobinson: commit-queue-

Gustavo Noronha (kov)
Reported 2012-01-10 11:30:02 PST
WebKitPluginProcess, libwebkitgtk, and libwebkit2gtk are huge libraries when built in debug mode and can exhaust the available memory pretty easily when linked at the same time. We Their linking should be serialized.
Attachments
Proposed patch (2.65 KB, patch)
2012-01-10 11:35 PST, Gustavo Noronha (kov)
mrobinson: commit-queue-
Gustavo Noronha (kov)
Comment 1 2012-01-10 11:35:17 PST
Created attachment 121878 [details] Proposed patch I'm doing a test build with --no-webkit2 to make sure it works, Philippe, but I couldn't see a reason for it not to =). More details on the trick to adding dependencies to automake targets: http://old.nabble.com/side-stepping-automake-limitations-with-custom-dependencies-td31907825.html
Gustavo Noronha (kov)
Comment 2 2012-01-10 13:24:52 PST
OK, my --no-webkit2 build worked =)
Martin Robinson
Comment 3 2012-01-10 23:54:54 PST
Comment on attachment 121878 [details] Proposed patch View in context: https://bugs.webkit.org/attachment.cgi?id=121878&action=review This is awesome. > Source/WebKit2/GNUmakefile.am:1017 > +WEBKIT2GTKLIBFORDEP = libwebkit2gtk-@WEBKITGTK_API_MAJOR_VERSION@.@WEBKITGTK_API_MINOR_VERSION@.la We've been using names_like_this recently in automake files. Do you mind changing this to something like webkit2gtk_lib_for_dep > Source/WebKit2/GNUmakefile.am:1280 > +# Serialize linking of the plugin process with both webkit libraries Super nit: missing a period at the end of this line. > Source/WebKit2/GNUmakefile.am:1281 > +PLUGINPROCFORDEP = Programs/WebKitPluginProcess Ditto with the caps.
Gustavo Noronha (kov)
Comment 4 2012-01-11 05:54:47 PST
Gustavo Noronha (kov)
Comment 5 2012-01-11 05:55:31 PST
Comment on attachment 121878 [details] Proposed patch Clearing review flag
Note You need to log in before you can comment on or make changes to this bug.