Title: [283164] trunk/Tools
Revision
283164
Author
[email protected]
Date
2021-09-28 05:44:11 -0700 (Tue, 28 Sep 2021)

Log Message

Fix rounding issue in run-jsc-stress-tests
https://bugs.webkit.org/show_bug.cgi?id=230889

Patch by Geza Lore <[email protected]> on 2021-09-28
Reviewed by Adrian Perez de Castro.

* Scripts/run-jsc-stress-tests:

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (283163 => 283164)


--- trunk/Tools/ChangeLog	2021-09-28 10:29:43 UTC (rev 283163)
+++ trunk/Tools/ChangeLog	2021-09-28 12:44:11 UTC (rev 283164)
@@ -1,3 +1,12 @@
+2021-09-28  Geza Lore  <[email protected]>
+
+        Fix rounding issue in run-jsc-stress-tests
+        https://bugs.webkit.org/show_bug.cgi?id=230889
+
+        Reviewed by Adrian Perez de Castro.
+
+        * Scripts/run-jsc-stress-tests:
+
 2021-09-27  Yusuke Suzuki  <[email protected]>
 
         [WTF] Add ApproximateTime

Modified: trunk/Tools/Scripts/run-jsc-stress-tests (283163 => 283164)


--- trunk/Tools/Scripts/run-jsc-stress-tests	2021-09-28 10:29:43 UTC (rev 283163)
+++ trunk/Tools/Scripts/run-jsc-stress-tests	2021-09-28 12:44:11 UTC (rev 283164)
@@ -2020,10 +2020,12 @@
 
     # Chunks 1 to nWorkers-1 run in the worker processes
     for i in 1...nWorkers do
+      chunkStart = i*chunkSize
+      break if chunkStart >= array.size
       pid = Process.fork
       if pid.nil?
         # Worker process. Process chunk i.
-        array.slice(i*chunkSize, chunkSize).each(&block)
+        array.slice(chunkStart, chunkSize).each(&block)
         Process.exit!(true)
       else
         childPIDs << pid
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to