Closed Bug 841145 Opened 11 years ago Closed 11 years ago

MOZ_SHUTDOWN_CHECKS to control what we do with late writes

Categories

(Toolkit :: Telemetry, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla21

People

(Reporter: espindola, Assigned: espindola)

Details

Attachments

(1 file)

Attached patch patchSplinter Review
With this patch an addon author should be able to debug its addon with a released version of firefox by setting MOZ_SHUTDOWN_CHECKS to "crash" (to use a debugger) or "record" (to just look in about:telemetry).
Attachment #713592 - Flags: review?(vdjeric)
Attachment #713592 - Flags: feedback?(bgirard)
Attachment #713592 - Flags: feedback?(bgirard) → feedback+
Comment on attachment 713592 [details] [diff] [review]
patch

>+    // We normally don't poison writes if gShutdownChecks is SCM_NOTHING, but
>+    // write poisoning can get more users in the future (profiling for example),
>+    // so make sure we behave correctly.
>+    if (gShutdownChecks == SCM_NOTHING || ok || !sProfileDirectory ||
>+        !Telemetry::CanRecord())
>         return ok;

Add a curly for this please
Attachment #713592 - Flags: review?(vdjeric) → review+
https://hg.mozilla.org/mozilla-central/rev/049392b28dd1
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla21
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: