equal
deleted
inserted
replaced
1 # HG changeset patch |
1 # HG changeset patch |
2 # User Wolfgang Rosenauer <wr@rosenauer.org> |
2 # User Wolfgang Rosenauer <wr@rosenauer.org> |
3 # Parent ebd7e379c85889b6f8dba0542479110ab1f6b059 |
3 # Parent 02ffee15578fd4dc2dd5ade32e7dab907d633b0d |
4 |
4 |
5 diff --git a/build/moz.configure/lto-pgo.configure b/build/moz.configure/lto-pgo.configure |
5 diff --git a/build/moz.configure/lto-pgo.configure b/build/moz.configure/lto-pgo.configure |
6 --- a/build/moz.configure/lto-pgo.configure |
6 --- a/build/moz.configure/lto-pgo.configure |
7 +++ b/build/moz.configure/lto-pgo.configure |
7 +++ b/build/moz.configure/lto-pgo.configure |
8 @@ -243,34 +243,34 @@ def lto( |
8 @@ -242,34 +242,34 @@ def lto( |
9 "configure." |
9 "configure." |
10 ) |
10 ) |
11 |
11 |
12 if c_compiler.type == "clang": |
12 if c_compiler.type == "clang": |
13 if value == "full": |
13 if value == "full": |
179 + // exit may take time and it is better to make build hang rather than |
179 + // exit may take time and it is better to make build hang rather than |
180 + // silently produce poorly performing binary. |
180 + // silently produce poorly performing binary. |
181 + crashAfterMS = INT32_MAX; |
181 + crashAfterMS = INT32_MAX; |
182 + |
182 + |
183 UniquePtr<Options> options(new Options()); |
183 UniquePtr<Options> options(new Options()); |
184 const PRIntervalTime ticksDuration = |
184 // crashAfterTicks is guaranteed to be > 0 as |
185 PR_MillisecondsToInterval(HEARTBEAT_INTERVAL_MS); |
185 // crashAfterMS >= ADDITIONAL_WAIT_BEFORE_CRASH_MS >> HEARTBEAT_INTERVAL_MS |
186 options->crashAfterTicks = crashAfterMS / ticksDuration; |
186 options->crashAfterTicks = crashAfterMS / HEARTBEAT_INTERVAL_MS; |
187 // Handle systems where ticksDuration is greater than crashAfterMS. |
187 |
188 if (options->crashAfterTicks == 0) { |
188 DebugOnly<PRThread*> watchdogThread = |
189 options->crashAfterTicks = crashAfterMS / HEARTBEAT_INTERVAL_MS; |
189 CreateSystemThread(RunWatchdog, options.release()); |
190 } |
190 MOZ_ASSERT(watchdogThread); |