Title: [291016] trunk/Source
Revision
291016
Author
[email protected]
Date
2022-03-08 15:18:34 -0800 (Tue, 08 Mar 2022)

Log Message

Fix Windows debug build
https://bugs.webkit.org/show_bug.cgi?id=237617

Patch by Alex Christensen <[email protected]> on 2022-03-08
Reviewed by Fujii Hironori.

Source/WebCore:

* loader/appcache/ApplicationCacheStorage.cpp:
(WebCore::parseHeader):

Source/WTF:

MSVC's linker is limited to generating 4GB libraries.
Currently, I'm seeing WebCore.lib be 3.9GB and some bots are failing to link debug builds.
More source unification reduces WebCore.lib's size to 3.3GB.

* Scripts/generate-unified-source-bundles.rb:

Modified Paths

Diff

Modified: trunk/Source/WTF/ChangeLog (291015 => 291016)


--- trunk/Source/WTF/ChangeLog	2022-03-08 23:17:26 UTC (rev 291015)
+++ trunk/Source/WTF/ChangeLog	2022-03-08 23:18:34 UTC (rev 291016)
@@ -1,3 +1,16 @@
+2022-03-08  Alex Christensen  <[email protected]>
+
+        Fix Windows debug build
+        https://bugs.webkit.org/show_bug.cgi?id=237617
+
+        Reviewed by Fujii Hironori.
+
+        MSVC's linker is limited to generating 4GB libraries.
+        Currently, I'm seeing WebCore.lib be 3.9GB and some bots are failing to link debug builds.
+        More source unification reduces WebCore.lib's size to 3.3GB.
+
+        * Scripts/generate-unified-source-bundles.rb:
+
 2022-03-08  Chris Fleizach  <[email protected]>
 
         AX: Speech Synthesis no longer returning list of voices in macOS 12.3

Modified: trunk/Source/WTF/Scripts/generate-unified-source-bundles.rb (291015 => 291016)


--- trunk/Source/WTF/Scripts/generate-unified-source-bundles.rb	2022-03-08 23:17:26 UTC (rev 291015)
+++ trunk/Source/WTF/Scripts/generate-unified-source-bundles.rb	2022-03-08 23:18:34 UTC (rev 291016)
@@ -58,7 +58,9 @@
     exit 1
 end
 
-MAX_BUNDLE_SIZE = 8
+# Windows needs a larger bundle size because that helps keep WebCore.lib's size below the 4GB maximum in debug builds.
+MAX_BUNDLE_SIZE = (ENV['OS'] == 'Windows_NT') ? 16 : 8
+
 MAX_DENSE_BUNDLE_SIZE = 64
 $derivedSourcesPath = nil
 $unifiedSourceOutputPath = nil

Modified: trunk/Source/WebCore/ChangeLog (291015 => 291016)


--- trunk/Source/WebCore/ChangeLog	2022-03-08 23:17:26 UTC (rev 291015)
+++ trunk/Source/WebCore/ChangeLog	2022-03-08 23:18:34 UTC (rev 291016)
@@ -1,3 +1,13 @@
+2022-03-08  Alex Christensen  <[email protected]>
+
+        Fix Windows debug build
+        https://bugs.webkit.org/show_bug.cgi?id=237617
+
+        Reviewed by Fujii Hironori.
+
+        * loader/appcache/ApplicationCacheStorage.cpp:
+        (WebCore::parseHeader):
+
 2022-03-08  Antoine Quint  <[email protected]>
 
         [web-animations] color-interpolation should support discrete animation

Modified: trunk/Source/WebCore/loader/appcache/ApplicationCacheStorage.cpp (291015 => 291016)


--- trunk/Source/WebCore/loader/appcache/ApplicationCacheStorage.cpp	2022-03-08 23:17:26 UTC (rev 291015)
+++ trunk/Source/WebCore/loader/appcache/ApplicationCacheStorage.cpp	2022-03-08 23:18:34 UTC (rev 291016)
@@ -1054,8 +1054,8 @@
 template<typename CharacterType>
 static inline void parseHeader(const CharacterType* header, unsigned headerLength, ResourceResponse& response)
 {
-    ASSERT(find(header, headerLength, ':') != notFound);
-    unsigned colonPosition = find(header, headerLength, ':');
+    ASSERT(WTF::find(header, headerLength, ':') != notFound);
+    unsigned colonPosition = WTF::find(header, headerLength, ':');
 
     // Save memory by putting the header names into atom strings so each is stored only once,
     // even though the setHTTPHeaderField function does not require an atom string.
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to