Title: [159485] trunk
Revision
159485
Author
[email protected]
Date
2013-11-18 23:20:20 -0800 (Mon, 18 Nov 2013)

Log Message

Use hw.activecpu for determining how many processes to spawn.

It's documented as the preferred way to determine the number of threads
or processes to create in a SMP aware application.

Rubber-stamped by Tim Horton.

Source/ThirdParty/ANGLE:

* ANGLE.xcodeproj/project.pbxproj:

Source/WebCore:

* WebCore.xcodeproj/project.pbxproj:

Source/WebKit:

* WebKit.xcodeproj/project.pbxproj:

Source/WebKit2:

* WebKit2.xcodeproj/project.pbxproj:

Tools:

* Scripts/copy-webkitlibraries-to-product-directory:
* Scripts/run-jsc-stress-tests:
* WebKitTestRunner/WebKitTestRunner.xcodeproj/project.pbxproj:

Modified Paths

Diff

Modified: trunk/Source/ThirdParty/ANGLE/ANGLE.xcodeproj/project.pbxproj (159484 => 159485)


--- trunk/Source/ThirdParty/ANGLE/ANGLE.xcodeproj/project.pbxproj	2013-11-19 06:47:53 UTC (rev 159484)
+++ trunk/Source/ThirdParty/ANGLE/ANGLE.xcodeproj/project.pbxproj	2013-11-19 07:20:20 UTC (rev 159485)
@@ -668,7 +668,7 @@
 			);
 			runOnlyForDeploymentPostprocessing = 0;
 			shellPath = /bin/sh;
-			shellScript = "mkdir -p \"${BUILT_PRODUCTS_DIR}/DerivedSources/ANGLE\"\ncd \"${BUILT_PRODUCTS_DIR}/DerivedSources/ANGLE\"\n\n/bin/ln -sfh \"${SRCROOT}\" ANGLE\nexport ANGLE=\"ANGLE\"\n\nmake  --no-builtin-rules -f \"ANGLE/DerivedSources.make\" -j `/usr/sbin/sysctl -n hw.availcpu`";
+			shellScript = "mkdir -p \"${BUILT_PRODUCTS_DIR}/DerivedSources/ANGLE\"\ncd \"${BUILT_PRODUCTS_DIR}/DerivedSources/ANGLE\"\n\n/bin/ln -sfh \"${SRCROOT}\" ANGLE\nexport ANGLE=\"ANGLE\"\n\nmake  --no-builtin-rules -f \"ANGLE/DerivedSources.make\" -j `/usr/sbin/sysctl -n hw.activecpu`";
 		};
 /* End PBXShellScriptBuildPhase section */
 

Modified: trunk/Source/ThirdParty/ANGLE/ChangeLog (159484 => 159485)


--- trunk/Source/ThirdParty/ANGLE/ChangeLog	2013-11-19 06:47:53 UTC (rev 159484)
+++ trunk/Source/ThirdParty/ANGLE/ChangeLog	2013-11-19 07:20:20 UTC (rev 159485)
@@ -1,3 +1,14 @@
+2013-11-18  Mark Rowe  <[email protected]>
+
+        Use hw.activecpu for determining how many processes to spawn.
+
+        It's documented as the preferred way to determine the number of threads
+        or processes to create in a SMP aware application.
+
+        Rubber-stamped by Tim Horton.
+
+        * ANGLE.xcodeproj/project.pbxproj:
+
 2013-11-06  Dean Jackson  <[email protected]>
 
         kTraceBufferLen is unused in default builds

Modified: trunk/Source/WebCore/ChangeLog (159484 => 159485)


--- trunk/Source/WebCore/ChangeLog	2013-11-19 06:47:53 UTC (rev 159484)
+++ trunk/Source/WebCore/ChangeLog	2013-11-19 07:20:20 UTC (rev 159485)
@@ -1,3 +1,14 @@
+2013-11-18  Mark Rowe  <[email protected]>
+
+        Use hw.activecpu for determining how many processes to spawn.
+
+        It's documented as the preferred way to determine the number of threads
+        or processes to create in a SMP aware application.
+
+        Rubber-stamped by Tim Horton.
+
+        * WebCore.xcodeproj/project.pbxproj:
+
 2013-11-18  Samuel White  <[email protected]>
 
         AX: aria-labelledby should be used in preference to aria-labeledby

Modified: trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj (159484 => 159485)


--- trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj	2013-11-19 06:47:53 UTC (rev 159484)
+++ trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj	2013-11-19 07:20:20 UTC (rev 159485)
@@ -25499,7 +25499,7 @@
 			);
 			runOnlyForDeploymentPostprocessing = 0;
 			shellPath = /bin/sh;
-			shellScript = "mkdir -p \"${BUILT_PRODUCTS_DIR}/DerivedSources/WebCore\"\ncd \"${BUILT_PRODUCTS_DIR}/DerivedSources/WebCore\"\n\n/bin/ln -sfh \"${SRCROOT}\" WebCore\nexport WebCore=\"WebCore\"\n\nif [ ! $CC ]; then\n    export CC=\"`xcrun -find clang`\"\nfi\n\nif [ ! $GPERF ]; then\n    export GPERF=\"`xcrun -find gperf`\"\nfi\n\nif [ \"${ACTION}\" = \"build\" -o \"${ACTION}\" = \"install\" -o \"${ACTION}\" = \"installhdrs\" ]; then\n    make  --no-builtin-rules -f \"WebCore/DerivedSources.make\" -j `/usr/sbin/sysctl -n hw.availcpu` SDKROOT=\"${SDKROOT}\"\nfi\n";
+			shellScript = "mkdir -p \"${BUILT_PRODUCTS_DIR}/DerivedSources/WebCore\"\ncd \"${BUILT_PRODUCTS_DIR}/DerivedSources/WebCore\"\n\n/bin/ln -sfh \"${SRCROOT}\" WebCore\nexport WebCore=\"WebCore\"\n\nif [ ! $CC ]; then\n    export CC=\"`xcrun -find clang`\"\nfi\n\nif [ ! $GPERF ]; then\n    export GPERF=\"`xcrun -find gperf`\"\nfi\n\nif [ \"${ACTION}\" = \"build\" -o \"${ACTION}\" = \"install\" -o \"${ACTION}\" = \"installhdrs\" ]; then\n    make  --no-builtin-rules -f \"WebCore/DerivedSources.make\" -j `/usr/sbin/sysctl -n hw.activecpu` SDKROOT=\"${SDKROOT}\"\nfi\n";
 		};
 /* End PBXShellScriptBuildPhase section */
 

Modified: trunk/Source/WebKit/ChangeLog (159484 => 159485)


--- trunk/Source/WebKit/ChangeLog	2013-11-19 06:47:53 UTC (rev 159484)
+++ trunk/Source/WebKit/ChangeLog	2013-11-19 07:20:20 UTC (rev 159485)
@@ -1,3 +1,14 @@
+2013-11-18  Mark Rowe  <[email protected]>
+
+        Use hw.activecpu for determining how many processes to spawn.
+
+        It's documented as the preferred way to determine the number of threads
+        or processes to create in a SMP aware application.
+
+        Rubber-stamped by Tim Horton.
+
+        * WebKit.xcodeproj/project.pbxproj:
+
 2013-11-18  Ryuan Choi  <[email protected]>
 
         [EFL] Add EWebKitConfig.cmake and EWebKit2Config.cmake

Modified: trunk/Source/WebKit/WebKit.xcodeproj/project.pbxproj (159484 => 159485)


--- trunk/Source/WebKit/WebKit.xcodeproj/project.pbxproj	2013-11-19 06:47:53 UTC (rev 159484)
+++ trunk/Source/WebKit/WebKit.xcodeproj/project.pbxproj	2013-11-19 07:20:20 UTC (rev 159485)
@@ -2074,7 +2074,7 @@
 			);
 			runOnlyForDeploymentPostprocessing = 0;
 			shellPath = /bin/sh;
-			shellScript = "mkdir -p \"${TARGET_BUILD_DIR}/${PRIVATE_HEADERS_FOLDER_PATH}\"\nmkdir -p \"${TARGET_BUILD_DIR}/${PUBLIC_HEADERS_FOLDER_PATH}\"\nmkdir -p \"${BUILT_PRODUCTS_DIR}/DerivedSources/WebKit\"\n\nif [ \"${ACTION}\" = \"build\" -o \"${ACTION}\" = \"install\" -o \"${ACTION}\" = \"installhdrs\" ]; then\n    make -C mac -f \"MigrateHeaders.make\" -j `/usr/sbin/sysctl -n hw.availcpu`\nfi\n";
+			shellScript = "mkdir -p \"${TARGET_BUILD_DIR}/${PRIVATE_HEADERS_FOLDER_PATH}\"\nmkdir -p \"${TARGET_BUILD_DIR}/${PUBLIC_HEADERS_FOLDER_PATH}\"\nmkdir -p \"${BUILT_PRODUCTS_DIR}/DerivedSources/WebKit\"\n\nif [ \"${ACTION}\" = \"build\" -o \"${ACTION}\" = \"install\" -o \"${ACTION}\" = \"installhdrs\" ]; then\n    make -C mac -f \"MigrateHeaders.make\" -j `/usr/sbin/sysctl -n hw.activecpu`\nfi\n";
 		};
 		3713F018142905B70036387F /* Check For Inappropriate Objective-C Class Names */ = {
 			isa = PBXShellScriptBuildPhase;

Modified: trunk/Source/WebKit2/ChangeLog (159484 => 159485)


--- trunk/Source/WebKit2/ChangeLog	2013-11-19 06:47:53 UTC (rev 159484)
+++ trunk/Source/WebKit2/ChangeLog	2013-11-19 07:20:20 UTC (rev 159485)
@@ -1,3 +1,14 @@
+2013-11-18  Mark Rowe  <[email protected]>
+
+        Use hw.activecpu for determining how many processes to spawn.
+
+        It's documented as the preferred way to determine the number of threads
+        or processes to create in a SMP aware application.
+
+        Rubber-stamped by Tim Horton.
+
+        * WebKit2.xcodeproj/project.pbxproj:
+
 2013-11-18  Anders Carlsson  <[email protected]>
 
         Let's try this again.

Modified: trunk/Source/WebKit2/WebKit2.xcodeproj/project.pbxproj (159484 => 159485)


--- trunk/Source/WebKit2/WebKit2.xcodeproj/project.pbxproj	2013-11-19 06:47:53 UTC (rev 159484)
+++ trunk/Source/WebKit2/WebKit2.xcodeproj/project.pbxproj	2013-11-19 07:20:20 UTC (rev 159485)
@@ -6695,7 +6695,7 @@
 			);
 			runOnlyForDeploymentPostprocessing = 0;
 			shellPath = /bin/sh;
-			shellScript = "mkdir -p \"${BUILT_PRODUCTS_DIR}/DerivedSources/WebKit2\"\ncd \"${BUILT_PRODUCTS_DIR}/DerivedSources/WebKit2\"\n\nexport WebKit2=\"${SRCROOT}\"\n\nif [ ! $CC ]; then\n    export CC=\"`xcrun -find clang`\"\nfi\n\nif [ \"${ACTION}\" = \"build\" -o \"${ACTION}\" = \"install\" -o \"${ACTION}\" = \"installhdrs\" ]; then\n    make --no-builtin-rules -f \"${WebKit2}/DerivedSources.make\" -j `/usr/sbin/sysctl -n hw.availcpu` SDKROOT=${SDKROOT}\nfi\n";
+			shellScript = "mkdir -p \"${BUILT_PRODUCTS_DIR}/DerivedSources/WebKit2\"\ncd \"${BUILT_PRODUCTS_DIR}/DerivedSources/WebKit2\"\n\nexport WebKit2=\"${SRCROOT}\"\n\nif [ ! $CC ]; then\n    export CC=\"`xcrun -find clang`\"\nfi\n\nif [ \"${ACTION}\" = \"build\" -o \"${ACTION}\" = \"install\" -o \"${ACTION}\" = \"installhdrs\" ]; then\n    make --no-builtin-rules -f \"${WebKit2}/DerivedSources.make\" -j `/usr/sbin/sysctl -n hw.activecpu` SDKROOT=${SDKROOT}\nfi\n";
 		};
 /* End PBXShellScriptBuildPhase section */
 

Modified: trunk/Tools/ChangeLog (159484 => 159485)


--- trunk/Tools/ChangeLog	2013-11-19 06:47:53 UTC (rev 159484)
+++ trunk/Tools/ChangeLog	2013-11-19 07:20:20 UTC (rev 159485)
@@ -1,3 +1,16 @@
+2013-11-18  Mark Rowe  <[email protected]>
+
+        Use hw.activecpu for determining how many processes to spawn.
+
+        It's documented as the preferred way to determine the number of threads
+        or processes to create in a SMP aware application.
+
+        Rubber-stamped by Tim Horton.
+
+        * Scripts/copy-webkitlibraries-to-product-directory:
+        * Scripts/run-jsc-stress-tests:
+        * WebKitTestRunner/WebKitTestRunner.xcodeproj/project.pbxproj:
+
 2013-11-18  Tim Horton  <[email protected]>
 
         build.webkit.org/dashboard builder headers should link to the builder page

Modified: trunk/Tools/Scripts/copy-webkitlibraries-to-product-directory (159484 => 159485)


--- trunk/Tools/Scripts/copy-webkitlibraries-to-product-directory	2013-11-19 06:47:53 UTC (rev 159484)
+++ trunk/Tools/Scripts/copy-webkitlibraries-to-product-directory	2013-11-19 07:20:20 UTC (rev 159485)
@@ -143,7 +143,7 @@
 
         print("Building LLVM.\n");
         chdir $ownLLVMDirectory;
-        (system("make -j `sysctl -n hw.availcpu`") == 0) or die;
+        (system("make -j `sysctl -n hw.activecpu`") == 0) or die;
         chdirWebKit();
         
         my $ownLLVMBuildMode = "";

Modified: trunk/Tools/Scripts/run-jsc-stress-tests (159484 => 159485)


--- trunk/Tools/Scripts/run-jsc-stress-tests	2013-11-19 06:47:53 UTC (rev 159484)
+++ trunk/Tools/Scripts/run-jsc-stress-tests	2013-11-19 07:20:20 UTC (rev 159485)
@@ -71,7 +71,7 @@
     raise "Command failed: #{$?.inspect}" unless system(*cmd)
 end
 
-$numProcessors = `sysctl -n hw.availcpu`.to_i
+$numProcessors = `sysctl -n hw.activecpu`.to_i
 if $numProcessors == 0
     $numProcessors = `nproc --all 2>/dev/null`.to_i
 end

Modified: trunk/Tools/WebKitTestRunner/WebKitTestRunner.xcodeproj/project.pbxproj (159484 => 159485)


--- trunk/Tools/WebKitTestRunner/WebKitTestRunner.xcodeproj/project.pbxproj	2013-11-19 06:47:53 UTC (rev 159484)
+++ trunk/Tools/WebKitTestRunner/WebKitTestRunner.xcodeproj/project.pbxproj	2013-11-19 07:20:20 UTC (rev 159485)
@@ -612,7 +612,7 @@
 			);
 			runOnlyForDeploymentPostprocessing = 0;
 			shellPath = /bin/sh;
-			shellScript = "mkdir -p \"${BUILT_PRODUCTS_DIR}/DerivedSources/WebKitTestRunner\"\ncd \"${BUILT_PRODUCTS_DIR}/DerivedSources/WebKitTestRunner\"\n\nexport WebKitTestRunner=\"${SRCROOT}\"\nexport WebCoreScripts=\"${WEBCORE_PRIVATE_HEADERS_DIR}\"\n\nif [ ! $CC ]; then\n    export CC=\"`xcrun -find clang`\"\nfi\n\nif [ \"${ACTION}\" = \"build\" -o \"${ACTION}\" = \"install\" -o \"${ACTION}\" = \"installhdrs\" ]; then\n    make -f \"${WebKitTestRunner}/DerivedSources.make\" -j `/usr/sbin/sysctl -n hw.availcpu`\nfi\n";
+			shellScript = "mkdir -p \"${BUILT_PRODUCTS_DIR}/DerivedSources/WebKitTestRunner\"\ncd \"${BUILT_PRODUCTS_DIR}/DerivedSources/WebKitTestRunner\"\n\nexport WebKitTestRunner=\"${SRCROOT}\"\nexport WebCoreScripts=\"${WEBCORE_PRIVATE_HEADERS_DIR}\"\n\nif [ ! $CC ]; then\n    export CC=\"`xcrun -find clang`\"\nfi\n\nif [ \"${ACTION}\" = \"build\" -o \"${ACTION}\" = \"install\" -o \"${ACTION}\" = \"installhdrs\" ]; then\n    make -f \"${WebKitTestRunner}/DerivedSources.make\" -j `/usr/sbin/sysctl -n hw.activecpu`\nfi\n";
 		};
 /* End PBXShellScriptBuildPhase section */
 
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to