Closed
Bug 845886
Opened 12 years ago
Closed 7 years ago
Make opt + assertions (aka release + debug) the default B2G developer build
Categories
(Firefox OS Graveyard :: GonkIntegration, defect, P3)
Firefox OS Graveyard
GonkIntegration
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: justin.lebar+bug, Unassigned)
Details
There was some discussion on the mailing list asking developers to test with debug builds, since our default release builds don't have assertions enabled.
I think the goal here is laudable, but I also think it's unrealistic to expect the proposed solution to become widely adopted. Many people are going to continue using the default build config because it's easy. And anyway, builds take time, and it's asking a lot for me to do a separate build just to play around with it and maybe catch an assertion.
So would anyone object if we changed our default developer builds to opt + assertions (which I think in Gecko goes by the name release + debug)? I'd want to know two things before we flipped this switch:
1) How slow are such builds? I'd expect them to be reasonably fast. If they're too slow maybe we can figure out why.
2) How stable are such builds? I'd expect we'd need to put in some time to fix assertions we're likely hitting. But of course that work would be productive.
Ben, when you tested debug builds for your newsgroup post, were you testing opt + assert builds, or no-opt + assert builds?
I was doing no-opt+debug. Switching to opt+debug sounds great to me though!
Comment 2•12 years ago
|
||
1. I do opt+debug builds almost all the time, and they're noticeably slower than non-debug builds when running on Unagi. <handwave>I'd guess maybe half the speed of non-debug builds.</handwave> Slow enough that when I occasionally make a non-debug build, I'm amazed at how fast it is.
2. The builds are stable, provided you don't get caught having to track down a fatal assertion that someone inserted but never tested/caught. At least once, after fixing one assertion, I started hitting another one.
Comment 3•12 years ago
|
||
(I also support switching to opt+debug.)
Reporter | ||
Comment 4•12 years ago
|
||
> 1. I do opt+debug builds almost all the time, and they're noticeably slower than non-debug builds
> when running on Unagi.
Okay; it sounds like we should profile some to understand why this is happening. Hopefully it's just a few expensive |ifdef DEBUG| things that we can turn off.
Updated•11 years ago
|
Assignee: nobody → jld
Updated•11 years ago
|
Whiteboard: c=
Updated•11 years ago
|
Comment 5•11 years ago
|
||
Here is a B2G try push with a configure.in change that should enable DEBUG unconditionally:
https://tbpl.mozilla.org/?tree=Try&rev=ca965e23ff82
Comment 6•11 years ago
|
||
Argh, no tests... trying with 'emulator' added.
https://tbpl.mozilla.org/?tree=Try&rev=4ae2e931ccf4
Comment 7•11 years ago
|
||
I think it's important that this happen, if we intend to take b2g seriously as an operating system and as a software project in general, but I can't commit the time needed to work on it.
Assignee: jld → nobody
Status: ASSIGNED → NEW
Whiteboard: [c=profiling p=]
Comment 8•11 years ago
|
||
This bug is independent of our other perf work. Since I think it is lower priority, I'm throwing it into the first sprint after all of our other work.
Whiteboard: [c=profiling s=2013.11.01 p=3]
Updated•11 years ago
|
Whiteboard: [c=profiling s=2013.11.01 p=3] → [c=profiling s= p=5 u=]
Comment 9•11 years ago
|
||
I think parts of this have already been accomplished. I'm not sure making the switch in this way is a priority anymore.
Status: NEW → RESOLVED
Closed: 11 years ago
Priority: -- → P3
Resolution: --- → WONTFIX
Updated•11 years ago
|
Whiteboard: [c=profiling s= p=5 u=] → [c=profiling s=2014.05.23.t p= u=]
Comment 10•11 years ago
|
||
(In reply to Dave Huseby [:huseby] from comment #9)
> I think parts of this have already been accomplished. I'm not sure making
> the switch in this way is a priority anymore.
Where did this happen? I am seeing more and more assertions triggering with debug builds so I am not sure we should close this bug. We are currently working on sorting out the assertions that are too slow for debug builds with JS engineers.
Status: RESOLVED → REOPENED
Resolution: WONTFIX → ---
Comment 11•7 years ago
|
||
Firefox OS is not being worked on
Status: REOPENED → RESOLVED
Closed: 11 years ago → 7 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•