diff -r 7bdeb580be51 -r 56ecd2ae6e61 mozilla-pgo.patch --- a/mozilla-pgo.patch Mon Apr 04 10:22:27 2022 +0200 +++ b/mozilla-pgo.patch Sun May 01 18:18:56 2022 +0200 @@ -1,11 +1,11 @@ # HG changeset patch # User Wolfgang Rosenauer -# Parent ebd7e379c85889b6f8dba0542479110ab1f6b059 +# Parent 02ffee15578fd4dc2dd5ade32e7dab907d633b0d diff --git a/build/moz.configure/lto-pgo.configure b/build/moz.configure/lto-pgo.configure --- a/build/moz.configure/lto-pgo.configure +++ b/build/moz.configure/lto-pgo.configure -@@ -243,34 +243,34 @@ def lto( +@@ -242,34 +242,34 @@ def lto( "configure." ) @@ -181,10 +181,10 @@ + crashAfterMS = INT32_MAX; + UniquePtr options(new Options()); - 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 / HEARTBEAT_INTERVAL_MS; - } + // crashAfterTicks is guaranteed to be > 0 as + // crashAfterMS >= ADDITIONAL_WAIT_BEFORE_CRASH_MS >> HEARTBEAT_INTERVAL_MS + options->crashAfterTicks = crashAfterMS / HEARTBEAT_INTERVAL_MS; + + DebugOnly watchdogThread = + CreateSystemThread(RunWatchdog, options.release()); + MOZ_ASSERT(watchdogThread);