Closed
Bug 1200825
Opened 10 years ago
Closed 10 years ago
Relax the driver crash guard in a few scenarios
Categories
(Core :: Graphics, defect)
Core
Graphics
Tracking
()
RESOLVED
FIXED
mozilla43
| Tracking | Status | |
|---|---|---|
| firefox43 | --- | fixed |
People
(Reporter: dvander, Assigned: dvander)
Details
Attachments
(1 file, 1 obsolete file)
|
3.16 KB,
patch
|
jgilbert
:
review+
|
Details | Diff | Splinter Review |
For nightly testing, having the crash guard means you're more likely to lose acceleration, which is annoying. In addition we think it's okay for WebGL to not be crash guarded in content processes, since this makes it easier to test/debug, and also lessens the risk of losing WebGL activation.
| Assignee | ||
Comment 1•10 years ago
|
||
Attachment #8655658 -
Flags: review?(jgilbert)
Comment 2•10 years ago
|
||
Comment on attachment 8655658 [details] [diff] [review]
fix
Review of attachment 8655658 [details] [diff] [review]:
-----------------------------------------------------------------
::: gfx/src/DriverCrashGuard.cpp
@@ +57,5 @@
> {
> + // We only use the crash guard on non-nightly channels, since the nightly
> + // channel is for development and having graphics features perma-disabled
> + // is rather annoying.
> +#if !defined(NIGHTLY_BUILD)
This would be nicer as an early-out, instead of having to enclose the whole block.
Also prefer #ifndef.
Attachment #8655658 -
Flags: review?(jgilbert) → review+
| Assignee | ||
Comment 3•10 years ago
|
||
Add an env var to disable crash guards as well.
Attachment #8655658 -
Attachment is obsolete: true
Attachment #8655759 -
Flags: review?(jgilbert)
Comment 4•10 years ago
|
||
Comment on attachment 8655759 [details] [diff] [review]
v2
Review of attachment 8655759 [details] [diff] [review]:
-----------------------------------------------------------------
::: gfx/src/DriverCrashGuard.cpp
@@ +74,5 @@
> + static bool sEnvChecked = false;
> + static bool sAllGuardsDisabled = false;
> + if (!sEnvChecked) {
> + sAllGuardsDisabled = !!PR_GetEnv("MOZ_DISABLE_CRASH_GUARD");
> + sEnvChecked = true;
The way statics work, I believe you should be able to just do:
static bool sAllGuardsDisabled = !!PR_GetEnv("MOZ_DISABLE_CRASH_GUARD");
Attachment #8655759 -
Flags: review?(jgilbert) → review+
Comment 6•10 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
status-firefox43:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla43
You need to log in
before you can comment on or make changes to this bug.
Description
•