Mike Hommey
255ad3e210
Bug 945042 - Move NO_PROFILE_GUIDED_OPTIMIZE to moz.build. r=gps,r=njn
2013-12-09 13:39:26 +09:00
Mike Hommey
fdd3247a81
Bug 874266 - Move all DEFINES that can be moved to moz.build. r=mshal
2013-11-27 22:55:07 +09:00
Mike Hommey
2f727b6d62
Backout changeset 3fd4b546eed4 (bug 874266) and changeset a35d2e3a872f (bug 942043) for ASAN build bustage and Windows test bustage
...
--HG--
extra : amend_source : f20d09aeff1c8b5cbd0f1d24c7ce04e86f3aed1d
2013-11-28 14:24:05 +09:00
Mike Hommey
b038245b8d
Bug 874266 - Move all DEFINES that can be moved to moz.build. r=mshal
2013-11-28 13:08:16 +09:00
Mike Hommey
f0d1cd1e10
Bug 939044 - Remove most definitions of MODULE. r=mshal
2013-11-19 11:47:39 +09:00
David Major
113eaa4daf
Bug 931196 - Remove MOZ_TEMP_INVESTIGATION poisoning code. r=glandium
2013-10-31 11:52:08 -04:00
Cykesiopka
be7f216715
Bug 914270 - Part 2: Manual moves. r=joey
2013-10-24 18:52:00 +01:00
Mike Hommey
f1c0c07862
Bug 929905 - Consolidate sources in moz.build. r=gps
2013-10-25 08:23:05 +09:00
Nathan Froyd
741ae62ad8
Bug 925169 - part 1 - don't use MOZ_MEMORY_SIZEOF_PTR_2POW in jemalloc.c; r=glandium
2013-10-09 19:04:43 -04:00
Mike Hommey
05b3f24e0e
Bug 912293 - Remove now redundant boilerplate from Makefile.in. r=gps
2013-09-05 09:01:46 +09:00
Douglas Crosher
023f3a586e
Bug 908971 - jemalloc: fix uninitialized 'mapped' variable. r=jlebar
2013-08-24 13:35:08 +10:00
Justin Lebar
e8eb0d970a
Bug 903420 - Two fixes to jemalloc's memory reporters. r=glandium
...
1) We were counting "dirty" pages in "waste", when we shouldn't have
been. This was causing the assertion at the end of jemalloc_stats()
which checks that mapped memory is greater than committed memory to
fail.
2) jemalloc_stats used stats_chunks.curchunks to measure the number of
mapped pages. This was problematic for two reasons.
a) stats_chunks.curchunks was not locked when it was modified in
chunk_{de}alloc(), so its value could be garbage.
b) Even if it had been locked properly, it was possible for an
allocation to occur during a call to jemalloc_stats which would
cause the measured amount of allocated memory to exceed the
measured amount of mapped memory, tripping the assertion we
tripped in (1).
We fixed these issues by deleting stats_chunks entirely, and by
introducing huge_mapped, which measures the amount of memory mapped
by huge allocations (and is properly protected by huge_mtx).
We now measure the amount of mapped memory by adding huge_mapped and
each arena's mapped memory, and we do this in such a way that even if
an allocation occurs during our call to jemalloc_stats, we'll still
get a consistent result (where mapped >= committed).
2013-08-15 11:15:04 -07:00
Mike Hommey
29dbd867f2
Bug 901211 - Don't use static page size on ia64, sparc and mips. r=jlebar
2013-08-05 09:10:35 +09:00
Ms2ger
fe9c33f5f4
Bug 897921 - Remove some dead assignments in makefiles; r=mshal
2013-08-02 09:03:55 +02:00
Justin Lebar
820d692af0
Bug 898558 - Rework jemalloc_stats so it exposes how much memory is used for bookkeeping. r=glandium
...
This patch also gets rid of the redundant "committed" entry, so now
there's no confusion as to which entries overlap.
--HG--
extra : rebase_source : 429f3d44011f02dda43aa10b077c917c4d02fe50
2013-07-29 09:10:53 -07:00
Brian O'Keefe
20b45036df
Bug 875934 - Move LIBRARY_NAME to moz.build (batch #2 ); r=mshal
...
--HG--
extra : rebase_source : 555b28e5c3412ffc210c60b6fe2fee6f053fd587
2013-06-18 08:13:42 -04:00
Joey Armstrong
32009a30fd
bug 870406: move CSRCS to mozbuild (config batch #2 ) r=mshal
2013-06-04 11:08:44 -04:00
Mike Shal
24b4056720
Bug 846634 - Part 2: Move EXPORTS to moz.build; r=joey
2013-04-16 15:24:43 -04:00
Kyle Machulis
f5e3aadf0b
Bug 855465 - Add emacs python mode comments to moz.build files; r=gps
2013-04-01 11:36:59 -07:00
Kyle Machulis
d2b6e6e01a
Backout for changeset 03452b187c14 (Bug 855465) due to bustage on a CLOSED TREE; r=qdot
2013-03-29 15:12:58 -07:00
Kyle Machulis
5663b98bc5
Bug 855465 - Add emacs python mode comments to moz.build files; r=gps
...
--HG--
extra : rebase_source : 004a756492323e1a049586e85b3be5037159df20
2013-03-29 13:56:18 -07:00
Steve Singer
fd35c44e3b
Bug 851859 - Set jemalloc's page size based on the architecture instead of assuming it's always 4kb. r=jlebar
2013-03-27 11:32:34 -04:00
Mike Shal
ea1d9b8ba7
Bug 844654 - Part 2: Move MODULE to moz.build; rs=gps
2013-03-19 11:47:00 -07:00
Gregory Szorc
bab4f2e930
Bug 784841 - Part 18c: Convert /memory, /mfbt, /mozglue; r=ted f=Ms2ger
2013-02-25 12:47:17 -08:00
Mike Hommey
59b6cf75be
Bug 804303 part 2 - Add ability to dynamically replace or supplement jemalloc implementation. r=jlebar,r=khuey
2012-12-07 09:32:24 +01:00
Mike Hommey
d5e3887cb4
Bug 804303 part 1 - Cleanup how the mozjemalloc/jemalloc3 glue is set up, attempting to make it clearer. r=jlebar,r=khuey
...
--HG--
rename : memory/build/extraMallocFuncs.c => memory/build/jemalloc_config.c
rename : memory/mozjemalloc/jemalloc.h => memory/build/mozmemory.h
rename : memory/build/extraMallocFuncs.c => memory/build/mozmemory_wrap.c
2012-12-07 09:32:24 +01:00
Gabriele Svelto
b0e4008f39
Bug 811740 - Reduce the amount of unused dirty pages kept by jemalloc to 1MiB in B2G. r=jlebar, r=glandium
2012-11-28 17:03:35 +01:00
Gabriele Svelto
31446e19f7
Bug 805855 - Add an extra function to jemalloc to free dirty unused pages. r=glandium
2012-11-08 20:06:50 +01:00
Rafael Ávila de Espíndola
7a1ec44b6c
Bug 807112 - change MOZ_EXPORT_API and MOZ_IMPORT_API to not take the type. r=Waldo.
2012-10-31 18:18:12 -04:00
Jan Beich
3f52b11bfc
Bug 788955 - Mark some jemalloc functions as weak on BSDs. r=glandium
2012-10-17 16:38:43 +02:00
Jan Beich
4697f18049
Bug 788955 - Without --enable-jemalloc detect and use jemalloc3 in libc. r=glandium
2012-10-17 16:36:49 +02:00
Justin Lebar
be343871b9
Bug 787675 - When jemalloc hits a fatal assertion, crash within a new stack frame, in the hopes of making the crashstats more understandable. r=glandium
2012-09-03 22:01:24 -04:00
Michael Wu
5de2edf85f
Bug 780287 - Don't wrap jemalloc on gonk, r=glandium
2012-08-06 16:22:26 -04:00
Mike Hommey
c1b35e7b2a
Bug 774032 bonus - Use @DEPTH@ and @relativesrcdir@ in Makefile.in. r=ted
2012-08-04 20:26:44 +02:00
Jan Beich
04ef44e648
Bug 778058 - Don't #define _malloc_message to malloc_message in jemalloc: FreeBSD's jemalloc-3.0.0 exports malloc_message (with different arguments) in stdlib.h. r=jlebar
2012-07-29 10:54:44 -04:00
Mike Hommey
623b904083
Bug 772423 - Hook mozjemalloc's abort(). r=jlebar
2012-07-11 16:55:39 +02:00
Justin Lebar
db7812d71f
Bug 772338 - Abort when VirtualAlloc fails in jemalloc's pages_commit routine. r=glandium
2012-07-10 09:25:25 -04:00
Justin Lebar
8cbf5c924d
Bug 766250 - Part 2: Split MOZ_TEMP_INVESTIGATION into MOZ_TEMP_INVESTIGATION and MOZ_JEMALLOC_HARD_ASSERTS. r=glandium
...
The former is temporary, the latter is not.
2012-06-20 01:22:40 -04:00
Justin Lebar
250dbb863e
Bug 766250 - Part 1: Enable more release-time jemalloc assertions. r=glandium
2012-06-20 01:22:40 -04:00
Justin Lebar
359b2d608d
Bug 764192 - Followup, fix red. r=me
2012-06-13 09:21:06 -04:00
Justin Lebar
80706a4a01
Bug 764192 - Enable some jemalloc assertions at release time in the hopes of catching heap corruption. r=glandium
...
This is disabled for the release and esr channels.
--HG--
extra : rebase_source : 0b668cfbb63d6478a4200a414cd0dafa0cfba1ce
2012-06-13 09:10:12 -04:00
Mike Hommey
505d68ddea
Bug 580408 - Glue for jemalloc 3.0.0. r=khuey
2012-06-07 10:41:59 +02:00
Mike Hommey
2de42d5e59
Bug 580408 - Move Mozilla fork of jemalloc to memory/mozjemalloc. r=khuey
...
--HG--
rename : memory/jemalloc/Makefile.in => memory/mozjemalloc/Makefile.in
rename : memory/jemalloc/jemalloc.c => memory/mozjemalloc/jemalloc.c
rename : memory/jemalloc/jemalloc.h => memory/mozjemalloc/jemalloc.h
rename : memory/jemalloc/jemalloc_types.h => memory/mozjemalloc/jemalloc_types.h
rename : memory/jemalloc/linkedlist.h => memory/mozjemalloc/linkedlist.h
rename : memory/jemalloc/osx_zone_types.h => memory/mozjemalloc/osx_zone_types.h
rename : memory/jemalloc/ql.h => memory/mozjemalloc/ql.h
rename : memory/jemalloc/qr.h => memory/mozjemalloc/qr.h
rename : memory/jemalloc/rb.h => memory/mozjemalloc/rb.h
2012-06-07 10:41:58 +02:00