Closed Bug 592774 Opened 14 years ago Closed 7 years ago

Re-enable Jetpack's memory debugging infrastructure when platform issues are resolved

Categories

(Add-on SDK Graveyard :: General, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: avarma, Unassigned)

References

Details

Attachments

(1 file, 2 obsolete files)

Because the reliability of the entire memory debugging infrastructure of Jetpack is put in question by bug 592180, at the very least, I'm going to disable all of it by default and only re-enable it once that bug is fixed.

Right now this means I will be setting cfx's '--profile-memory' option to default to 'false' and disabling test-memory.testMemory (bug 590284).

Once bug 592180 is resolved, we'll re-enable these items and see where to go from there.
Depends on: 592180
Attached patch patchSplinter Review
Attachment #471190 - Flags: review?(myk)
Comment on attachment 471190 [details] [diff] [review]
patch

Holy cow, our tests run a lot faster when memory profiling is disabled.
Attachment #471190 - Flags: review?(myk) → review+
Pushed:

Bug 592774 - Disable Jetpack's memory debugging infrastructure until platform issues are resolved
Atul Varma [:atul]
http://hg.mozilla.org/labs/jetpack-sdk/rev/2dbc3c305f55
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Er, I guess I'm going to re-open this bug as a reminder for us to apply a reverse-patch once the platform issues are resolved.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Summary: Disable Jetpack's memory debugging infrastructure until platform issues are resolved → Re-enable Jetpack's memory debugging infrastructure when platform issues are resolved
The Add-on SDK is no longer a Mozilla Labs experiment and has become a big enough project to warrant its own Bugzilla product, so the "Add-on SDK" product has been created for it, and I am moving its bugs to that product.

To filter bugmail related to this change, filter on the word "looptid".
Component: Jetpack SDK → General
Product: Mozilla Labs → Add-on SDK
QA Contact: jetpack-sdk → general
Version: Trunk → unspecified
Attached patch reverse patch (obsolete) — Splinter Review
Here's a patch that reverses the change, now that bug 592180 has been fixed.

Dietrich: alternately, we can reenable the test but leave --profile-memory false by default for speed (as I recall, testing sped up significantly when we disabled it).
Assignee: nobody → myk
Status: REOPENED → ASSIGNED
Attachment #521353 - Flags: review?(dietrich)
OS: Mac OS X → All
Hardware: x86 → All
yeah, performance (hurts when you're trying to rapidly debug something, eg doing cfx run 300x a day. also, IIRC the output obscured other things, require having to scroll the terminal, which was annoying.
bug 592180 isn't marked fixed, no comments since last august.
Attached patch reverse patch v2 (obsolete) — Splinter Review
(In reply to comment #7)
> yeah, performance (hurts when you're trying to rapidly debug something, eg
> doing cfx run 300x a day. also, IIRC the output obscured other things, require
> having to scroll the terminal, which was annoying.

Ok, let's reenable the test but leave memory profiling disabled by default.  Here's a patch that does that.


(In reply to comment #8)
> bug 592180 isn't marked fixed, no comments since last august.

Erm, right, I meant bug 590284.
Attachment #521353 - Attachment is obsolete: true
Attachment #521511 - Flags: review?(dietrich)
Attachment #521353 - Flags: review?(dietrich)
Priority: -- → P3
Target Milestone: --- → 1.0
Attachment #521511 - Flags: review?(dietrich) → review+
https://github.com/mozilla/addon-sdk/commit/8b75b9a7f76410819d9abfec1f383480110ce99f
Status: ASSIGNED → RESOLVED
Closed: 14 years ago13 years ago
Resolution: --- → FIXED
Reopening.  Apparently those platform issues haven't been completely resolved, as the fix broke tests on some platforms.

https://github.com/mozilla/addon-sdk/commit/30e67fab5fefc4129188a1864555ca95433719ff

http://tinderbox.mozilla.org/showlog.cgi?log=Jetpack/1303512147.1303512272.15189.gz&fulltext=1
http://tinderbox.mozilla.org/showlog.cgi?log=Jetpack/1303505544.1303506072.23425.gz&fulltext=1

In #jsapi:

(04:03:23 PM) bhackett: myk: that test doesn't look like it's accounting for the conservative GC which spidermonkey uses
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Furthermore:

(04:03:49 PM) bhackett: even if all references to an object from the JS stack and JS heap have been removed, there can be references on the C stack which the GC uses to keep the object alive
(automatic reprioritization of 1.0 bugs)
Priority: P3 → P2
Target Milestone: 1.0 → 1.1
(Pushing all open bugs to the --- milestone for the new triage system)
Target Milestone: 1.1 → ---
Unassigning myself from bugs I am not actively working on.
Assignee: myk → nobody
Attachment #521511 - Attachment is obsolete: true
https://bugzilla.mozilla.org/show_bug.cgi?id=1399562
Status: REOPENED → RESOLVED
Closed: 13 years ago7 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: