Closed Bug 1147243 Opened 9 years ago Closed 9 years ago

Build memory/jemalloc in unified mode

Categories

(Core :: General, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla40
Tracking Status
firefox40 --- fixed

People

(Reporter: ehsan.akhgari, Assigned: ehsan.akhgari)

References

Details

Attachments

(1 file, 1 obsolete file)

      No description provided.
Attachment #8582808 - Flags: review?(mh+mozilla)
Assignee: nobody → ehsan
Blocks: unified
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+
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)
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)
Well, the reason why I added it was that I was getting the same errors complaining about the lack of DMD.h without it.
Any other suggestions?
Flags: needinfo?(mh+mozilla)
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)
(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)
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)
(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
That build is not disabling DMD.
(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?
(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).
Thanks, that finally made things work!

https://treeherder.mozilla.org/#/jobs?repo=try&revision=4ac0783c888e
Status: RESOLVED → REOPENED
Resolution: WONTFIX → ---
Attachment #8582808 - Attachment is obsolete: true
Attachment #8597633 - Flags: review?(mh+mozilla)
Attachment #8597633 - Flags: review?(mh+mozilla) → review+
https://hg.mozilla.org/mozilla-central/rev/fa8ccc8fb9ed
Status: REOPENED → RESOLVED
Closed: 9 years ago9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla40
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: