mozilla-pgo.patch
branchfirefox88
changeset 1157 57fc0524b50c
parent 1155 b8c834aafde2
child 1169 7481543bab31
--- a/mozilla-pgo.patch	Sat Mar 27 21:45:50 2021 +0100
+++ b/mozilla-pgo.patch	Sat May 29 22:52:13 2021 +0200
@@ -1,6 +1,6 @@
 # HG changeset patch
 # User Wolfgang Rosenauer <wr@rosenauer.org>
-# Parent  07b5ae8ccc4806fcc5ad74e32a2d3fb2b9d605d0
+# Parent  ed9681bd4359b83145247fb6b01a56a2c84879fd
 
 diff --git a/build/moz.configure/lto-pgo.configure b/build/moz.configure/lto-pgo.configure
 --- a/build/moz.configure/lto-pgo.configure
@@ -155,7 +155,7 @@
 diff --git a/toolkit/components/terminator/nsTerminator.cpp b/toolkit/components/terminator/nsTerminator.cpp
 --- a/toolkit/components/terminator/nsTerminator.cpp
 +++ b/toolkit/components/terminator/nsTerminator.cpp
-@@ -425,16 +425,21 @@ void nsTerminator::StartWatchdog() {
+@@ -451,16 +451,21 @@ void nsTerminator::StartWatchdog() {
        // Defend against overflow
        crashAfterMS = INT32_MAX;
      } else {
@@ -170,10 +170,10 @@
 +  crashAfterMS = INT32_MAX;
 +
    UniquePtr<Options> options(new Options());
-   const PRIntervalTime ticksDuration = PR_MillisecondsToInterval(1000);
+   const PRIntervalTime ticksDuration =
+       PR_MillisecondsToInterval(HEARTBEAT_INTERVAL_MS);
    options->crashAfterTicks = crashAfterMS / ticksDuration;
    // Handle systems where ticksDuration is greater than crashAfterMS.
    if (options->crashAfterTicks == 0) {
-     options->crashAfterTicks = crashAfterMS / 1000;
+     options->crashAfterTicks = crashAfterMS / HEARTBEAT_INTERVAL_MS;
    }
-