Closed
Bug 736963
Opened 13 years ago
Closed 13 years ago
Move jemalloc'ed strdup/strndup definitions
Categories
(Firefox Build System :: General, defect)
Firefox Build System
General
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla14
People
(Reporter: glandium, Assigned: glandium)
References
Details
Attachments
(1 file, 3 obsolete files)
(deleted),
patch
|
ted
:
review+
|
Details | Diff | Splinter Review |
I want us to stop adding stuff directly in jemalloc code, which will allow easier jemalloc upgrades in the future. This bug is about strdup/strndup.
Assignee | ||
Comment 1•13 years ago
|
||
Pushed to try:
https://tbpl.mozilla.org/?tree=Try&rev=9363f5544207
Attachment #607179 -
Flags: review?(khuey)
Assignee | ||
Updated•13 years ago
|
Attachment #607179 -
Flags: review?(khuey) → review?(justin.lebar+bug)
Comment 2•13 years ago
|
||
Comment on attachment 607179 [details] [diff] [review]
Move jemalloc'ed strdup/strndup definitions
I have no idea if the build changes are right, but moving the definitions is fine. I don't know if you want to get a review on the build changes from khuey.
Could we name the new file something other than jemalloc.c?
Updated•13 years ago
|
Attachment #607179 -
Flags: review?(justin.lebar+bug) → review+
Assignee | ||
Comment 3•13 years ago
|
||
(In reply to Justin Lebar [:jlebar] from comment #2)
> Could we name the new file something other than jemalloc.c?
Any suggestions?
I'll probably rename memory/src to memory/build, too.
Comment 4•13 years ago
|
||
(In reply to Mike Hommey [:glandium] from comment #3)
> (In reply to Justin Lebar [:jlebar] from comment #2)
> > Could we name the new file something other than jemalloc.c?
>
> Any suggestions?
extraMallocFuns.c?
Assignee | ||
Comment 5•13 years ago
|
||
Attachment #610104 -
Flags: review?(ted.mielczarek)
Assignee | ||
Updated•13 years ago
|
Attachment #607179 -
Attachment is obsolete: true
Assignee | ||
Comment 6•13 years ago
|
||
Attachment #610105 -
Flags: review?(ted.mielczarek)
Assignee | ||
Updated•13 years ago
|
Attachment #610104 -
Attachment is obsolete: true
Attachment #610104 -
Flags: review?(ted.mielczarek)
Assignee | ||
Comment 7•13 years ago
|
||
Attachment #610108 -
Flags: review?(ted.mielczarek)
Assignee | ||
Updated•13 years ago
|
Attachment #610105 -
Attachment is obsolete: true
Attachment #610105 -
Flags: review?(ted.mielczarek)
Comment 8•13 years ago
|
||
Comment on attachment 610108 [details] [diff] [review]
Move jemalloc'ed strdup/strndup definitions
Review of attachment 610108 [details] [diff] [review]:
-----------------------------------------------------------------
::: Makefile.in
@@ +79,5 @@
> endif
>
> ifdef MOZ_MEMORY
> tier_base_dirs += memory/jemalloc
> +tier_base_dirs += memory/build
Just put these both in one assignment with a continuation.
::: mozglue/build/Makefile.in
@@ +48,5 @@
> DIST_INSTALL = 1
>
> ifdef MOZ_MEMORY
> +SHARED_LIBRARY_LIBS = $(call EXPAND_LIBNAME_PATH,memory,$(DEPTH)/memory/build)
> +SHARED_LIBRARY_LIBS += $(call EXPAND_LIBNAME_PATH,jemalloc,$(DEPTH)/memory/jemalloc)
Single assignment with contuation here too.
Attachment #610108 -
Flags: review?(ted.mielczarek) → review+
Assignee | ||
Comment 9•13 years ago
|
||
(In reply to Ted Mielczarek [:ted] from comment #8)
> Comment on attachment 610108 [details] [diff] [review]
> Move jemalloc'ed strdup/strndup definitions
>
> Review of attachment 610108 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> ::: Makefile.in
> @@ +79,5 @@
> > endif
> >
> > ifdef MOZ_MEMORY
> > tier_base_dirs += memory/jemalloc
> > +tier_base_dirs += memory/build
>
> Just put these both in one assignment with a continuation.
>
> ::: mozglue/build/Makefile.in
> @@ +48,5 @@
> > DIST_INSTALL = 1
> >
> > ifdef MOZ_MEMORY
> > +SHARED_LIBRARY_LIBS = $(call EXPAND_LIBNAME_PATH,memory,$(DEPTH)/memory/build)
> > +SHARED_LIBRARY_LIBS += $(call EXPAND_LIBNAME_PATH,jemalloc,$(DEPTH)/memory/jemalloc)
>
> Single assignment with contuation here too.
I did neither when landing, because in both cases, we're soon going to have ifdef/endif between both lines.
https://hg.mozilla.org/integration/mozilla-inbound/rev/c2a9fb626038
Comment 10•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla14
Updated•7 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•