Closed
Bug 1147243
Opened 9 years ago
Closed 9 years ago
Build memory/jemalloc in unified mode
Categories
(Core :: General, defect)
Core
General
Tracking
()
RESOLVED
FIXED
mozilla40
Tracking | Status | |
---|---|---|
firefox40 | --- | fixed |
People
(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)
References
Details
Attachments
(1 file, 1 obsolete file)
1.70 KB,
patch
|
glandium
:
review+
|
Details | Diff | Splinter Review |
No description provided.
Assignee | ||
Comment 1•9 years ago
|
||
Attachment #8582808 -
Flags: review?(mh+mozilla)
Comment 2•9 years ago
|
||
Comment on attachment 8582808 [details] [diff] [review] Build memory/jemalloc in unified mode Review of attachment 8582808 [details] [diff] [review]: ----------------------------------------------------------------- ::: memory/jemalloc/moz.build @@ +38,4 @@ > # Only OSX needs the zone allocation implementation, > # but only if replace-malloc is not enabled. > if CONFIG['OS_TARGET'] == 'Darwin' and not CONFIG['MOZ_REPLACE_MALLOC']: > SOURCES += [ Can you add this one too? (and push to try with ac_add_options --disable-replace-malloc and MOZ_JEMALLOC3=1 in build/mozconfig.common.override to test that it works) I'd like to know if the various compilers add warnings as a result of this.
Attachment #8582808 -
Flags: review?(mh+mozilla) → feedback+
Assignee | ||
Comment 3•9 years ago
|
||
See <https://treeherder.mozilla.org/#/jobs?repo=try&revision=01e6bd8d0c98>. I'm not sure what I need to do to make sure DMD.h is available. Do you know?
Flags: needinfo?(mh+mozilla)
Comment 4•9 years ago
|
||
Don't build with MOZ_DMD=1, it's incompatible with --disable-replace-malloc (should error in configure instead of failing to build later, though)
Flags: needinfo?(mh+mozilla)
Assignee | ||
Comment 5•9 years ago
|
||
Well, the reason why I added it was that I was getting the same errors complaining about the lack of DMD.h without it.
Comment 7•9 years ago
|
||
The #include "DMD.h" in nsIMemoryReporter.idl/.h is under a #ifdef MOZ_DMD. So the only way that error happens is if you build with MOZ_DMD.
Flags: needinfo?(mh+mozilla)
Assignee | ||
Comment 8•9 years ago
|
||
(In reply to Mike Hommey [:glandium] from comment #7) > The #include "DMD.h" in nsIMemoryReporter.idl/.h is under a #ifdef MOZ_DMD. > So the only way that error happens is if you build with MOZ_DMD. OK then I'm not sure what else to try... Can we just take the patch as is?
Flags: needinfo?(mh+mozilla)
Comment 9•9 years ago
|
||
Not if it breaks --disable-replace-malloc MOZ_JEMALLOC3 builds, which aren't hypothetical: that's what we'd get when jemalloc 3 is enabled by default on aurora.
Flags: needinfo?(mh+mozilla)
Assignee | ||
Comment 10•9 years ago
|
||
(In reply to Mike Hommey [:glandium] from comment #9) > Not if it breaks --disable-replace-malloc MOZ_JEMALLOC3 builds, which aren't > hypothetical: that's what we'd get when jemalloc 3 is enabled by default on > aurora. OK, makes sense. I pushed again to try with the patch as is and got hit by the same issue. <https://treeherder.mozilla.org/#/jobs?repo=try&revision=4cd11474f28a>. I'm giving up. :/
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WONTFIX
Comment 11•9 years ago
|
||
That build is not disabling DMD.
Assignee | ||
Comment 12•9 years ago
|
||
(In reply to Mike Hommey [:glandium] from comment #11) > That build is not disabling DMD. What's the correct way to disable DMD? Doesn't --disable-replace-malloc do that?
Comment 13•9 years ago
|
||
(In reply to :Ehsan Akhgari (not reading bugmail, needinfo? me!) from comment #12) > (In reply to Mike Hommey [:glandium] from comment #11) > > That build is not disabling DMD. > > What's the correct way to disable DMD? Doesn't --disable-replace-malloc do > that? Maybe it should, but it currently doesn't, and the in-tree mozconfigs explicitly enable it. So hit for that, remove --enable-dmd from the mozconfigs (or add --disable-dmd to mozconfig.common.override, assuming that's included after the other mozconfigs).
Assignee | ||
Comment 14•9 years ago
|
||
Thanks, that finally made things work! https://treeherder.mozilla.org/#/jobs?repo=try&revision=4ac0783c888e
Status: RESOLVED → REOPENED
Resolution: WONTFIX → ---
Assignee | ||
Comment 15•9 years ago
|
||
Attachment #8582808 -
Attachment is obsolete: true
Attachment #8597633 -
Flags: review?(mh+mozilla)
Updated•9 years ago
|
Attachment #8597633 -
Flags: review?(mh+mozilla) → review+
https://hg.mozilla.org/mozilla-central/rev/fa8ccc8fb9ed
Status: REOPENED → RESOLVED
Closed: 9 years ago → 9 years ago
status-firefox40:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla40
You need to log in
before you can comment on or make changes to this bug.
Description
•