Commit Graph

305 Commits

Author SHA1 Message Date
Nicholas Nethercote
d1985a03e0 Bug 822148 (part 2) - DMD: Treat twice-reported blocks more like other blocks. r=jlebar.
--HG--
extra : rebase_source : 345123de945a3c26ec6ca88a599b45efddc4209e
2012-12-17 19:40:07 -08:00
Nicholas Nethercote
0d26120cb5 Bug 822148 (part 1) - DMD: remove reporter names from output because they're redundant. r=jlebar.
--HG--
extra : rebase_source : c9bf57dbd3612719ba60951cb14988ec38b392f0
2012-12-16 16:56:04 -08:00
Nicholas Nethercote
023fca81d9 Bug 822700 - When DMD is disabled its SizeOf() function shouldn't try to measure non-existent structures. r=jlebar.
--HG--
extra : rebase_source : 21066e5173dbc7e4a6c7615f1b355989bf046082
2012-12-18 15:14:31 -08:00
Kartikaya Gupta
ff89d55966 Bug 822698 - Rename GroupSize to GetGroupSize to fix a gcc 4.6 compilation error on Android. r=njn 2012-12-19 11:24:49 -05:00
Nicholas Nethercote
43f1555e44 Bug 821577 - DMD: Fix hang at start-up on Mac. r=jlebar.
--HG--
extra : rebase_source : 39b46f3a7b8aead6e971f55cb0821f443b7368dc
2012-12-13 19:42:47 -08:00
Nicholas Nethercote
331a06e2d2 Bug 819817 - DMD: cache calls to NS_DescribeCodeAddress for faster dumping. r=jlebar.
--HG--
extra : rebase_source : 418ef965586c5cafa5623d72d1ae92ea8ee749c2
2012-12-13 16:58:28 -08:00
Ehsan Akhgari
590bab4d4b Bug 820875 - Reimplement DMD's MutexBase using critical sections; r=bbondy 2012-12-13 19:51:41 -05:00
Ehsan Akhgari
dff7c46c55 Bug 821358 - Port the trace-malloc Windows TLS macros to DMD; r=njn 2012-12-13 19:47:41 -05:00
Nicholas Nethercote
f68111e9de Bug 820652 (part 7) - DMD: Fix bug in strdup_. r=jlebar.
--HG--
extra : rebase_source : d15a08687b465c9c63c8a3786fdc7ba2539f2b82
2012-12-12 21:57:23 -08:00
Nicholas Nethercote
be93835e35 Bug 820652 (part 6) - DMD: Don't use LiveBlockKey in LiveBlock. r=jlebar.
--HG--
extra : rebase_source : b65e0d34f6787a0f5031b685ececc61e19d4b0a3
2012-12-12 21:40:01 -08:00
Nicholas Nethercote
5ec1f90b98 Bug 820652 (part 5) - DMD: Store the block address in LiveBlock. r=jlebar.
--HG--
extra : rebase_source : ff147323054910d946e0023a97726c9e2268f733
2012-12-12 21:16:28 -08:00
Nicholas Nethercote
9d244ab0f2 Bug 820652 (part 4) - DMD: Inline BlockSize into LiveBlock. r=jlebar.
--HG--
extra : rebase_source : a543b4df4cbcecca8c6e59b6722a3a2b7298c2fa
2012-12-12 20:16:20 -08:00
Nicholas Nethercote
67b10f4d22 Bug 820652 (part 3) - DMD: Distinguish BlockSize and GroupSize. r=jlebar.
--HG--
extra : rebase_source : de31af9d5c00e52a7f775d7e0e11204edcb9e21b
2012-12-11 19:47:46 -08:00
Nicholas Nethercote
784df47c48 Bug 820652 (part 2) - DMD: Embriefen the hash policy of LiveBlockGroup and DoubleReportBlockGroup. r=jlebar.
--HG--
extra : rebase_source : 41d1190f86cb2514c3b93717be6975d197226474
2012-12-11 19:46:53 -08:00
Nicholas Nethercote
e4bc626684 Bug 820652 (part 1) - DMD: Split BlockKey in two, and fix the ensuing fall-out. r=jlebar.
--HG--
extra : rebase_source : 9fdda42f633b209b0111fe6104e08b5028dda8b5
2012-12-11 19:08:38 -08:00
Nicholas Nethercote
05afc3e8ce Bug 820682 - DMD: Tweak stress mode. r=jlebar.
--HG--
extra : rebase_source : a9f9fe54ae78a7c959479a8818a62a23f6c7fa53
2012-12-11 17:52:04 -08:00
Ehsan Akhgari
0f661a6534 Bug 820875 - Implement MutexBase on Windows; r=bbondy 2012-12-12 11:18:17 -05:00
Nicholas Nethercote
036385fed8 Bug 819772 - Add a memory reporter for DMD's data. r=jlebar.
--HG--
extra : rebase_source : d85f4f08b3c0ec5e81bde9caa63699e60a303b33
2012-12-11 13:54:11 -08:00
Nicholas Nethercote
286438a568 Bug 819833 (part 1) - DMD: Print PCs at the end of lines. r=jlebar.
--HG--
extra : rebase_source : ce17d41f692c2babb9d7aec9dbca00ab42d10250
2012-12-10 19:26:56 -08:00
Justin Lebar
3e112225e8 Bug 820401 - Default DMD to sample-below=4093. r=njn
Also print out the sample size, since it's no longer explicit in the $DMD envvar.
2012-12-11 18:26:43 -05:00
Nicholas Nethercote
bc6e504af4 Bug 717853 - Add a native version of DMD. r=jlebar,glandium.
--HG--
extra : rebase_source : 9b824556591abd63b42aa7ff823e9cd25976c162
2012-12-10 16:05:07 -08:00
Mike Hommey
d631bf6223 Bug 804303 part 3 - Build jemalloc3 as a replace-malloc library when building with mozjemalloc. r=khuey 2012-12-07 09:32:24 +01: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
Mike Hommey
7a1f556209 Bug 815071 - Update jemalloc3 to commit 6eb84fb. r=jlebar 2012-12-07 09:32:23 +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
Jacek Szpot
3864cd4332 Bug 800106: Replace more NS_ALWAYS_INLINEs with MOZ_ALWAYS_INLINE; r=ehsan 2012-10-13 17:52:10 +02:00
Jan Beich
376af77a1a Bug 762445 - Add jemalloc3 glue for heap-committed, heap-dirty in about:memory. r=glandium,jlebar 2012-10-18 16:09:07 +02:00
Jan Beich
5291459067 Bug 788955 - Check for malloc_usable_size() and malloc_np.h via autoconf. r=glandium 2012-10-17 16:39:15 +02: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
Mike Hommey
69de5256ca Bug 799090 - Update jemalloc3 to commit d0ffd8e. r=jlebar 2012-10-17 16:29:28 +02:00
Ehsan Akhgari
71927a786f Backout changeset 0f0797cdb55a (bug 800106) because of Kraken regressions on Windows XP 2012-10-15 14:19:55 -04:00
Chris Jones
db11da9481 Bug 799849: Wrap nothrow libstdc++ allocators. r=glandium 2012-10-13 03:16:53 -07:00
Jacek Szpot
b848f67ec0 Bug 800106: replace NS_ALWAYS_INLINE with MOZ_ALWAYS_INLINE; r=ehsan 2012-10-13 17:52:10 +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
Jan Beich
8ccecf6d2e Bug 778056 - malloc_usable_size is also available in libc on FreeBSD, so use it in mozalloc.cpp. r=jlebar 2012-07-27 14:14:39 -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
Jacek Caban
1d74638a3f Bug 761859 - Missing MOZALLOC_EXPORT causes link failure on mingw r=ted 2012-06-11 09:51:06 +02:00
Mike Hommey
c09cb7dcc2 Bug 762446 - Hook jemalloc's abort. r=jlebar 2012-06-11 08:12:40 +02:00
Mike Hommey
505d68ddea Bug 580408 - Glue for jemalloc 3.0.0. r=khuey 2012-06-07 10:41:59 +02:00
Mike Hommey
372c1292d3 Bug 580408 - Import jemalloc 3.0.0. r=khuey,r=gerv 2012-06-07 10:41:58 +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
Jeff Walden
a694790f7c Bug 761859 - Make mozalloc_abort use MOZ_CRASH to crash. r=ted 2012-06-05 16:49:30 -07:00
Mike Hommey
292af80593 Bug 758010 - Wrap operator new/delete to jemalloc on Android. r=jlebar 2012-05-31 23:49:03 +02:00
Gervase Markham
638c878b13 Bug 759095 - upgrade license to MPL 2, and other licensing cleanups.
--HG--
extra : rebase_source : da55a4937383eda2baf7c9a362501da8ee664146
2012-05-29 16:52:43 +01:00
Mike Hommey
7b77a4cec3 Bug 758010 - Wrap operator new/delete on Android. r=khuey 2012-05-26 10:21:33 +02:00
Gervase Markham
87620f5676 Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Matt Brubeck
f08ab73a53 Back out c209fea124e1 (bug 754198) because of Win64 build failure 2012-05-11 13:23:49 -07:00
Fabrice Desré
fe66918d12 Bug 754198 - Warning treated as error in jemalloc.c. Build busted. [r=jlebar,bsmedberg] 2012-05-11 12:34:24 -07:00
Benjamin Smedberg
2ad3c17785 Bug 737164 prerequisite - move mozilla::fallible_t to its own header so that everyone can reference it reasonable, r=cjones
--HG--
extra : rebase_source : 1f0e042f6d639b960c85f7813346e82afcf27861
2012-05-08 12:30:37 -04:00
Mike Hommey
32f7c1af37 Bug 751482 - Move wcsdup and je_dumb_free_thunk out of jemalloc.c. r=jlebar 2012-05-04 09:47:00 +02:00
Mike Hommey
4f93bd0355 Fixup for bug 736564 - Ship libmemory.a in the SDK instead of libjemalloc.a. r=ted 2012-05-04 09:46:27 +02:00
Mike Hommey
9fda438cd4 Bug 736564 - Ship mozglue and jemalloc libraries in the SDK. r=bsmedberg,r=ted
As one import library on Windows, as one shared library on OSX and Android,
and as two separate static libraries on systems where mozglue is a static
library.
2012-05-03 08:36:12 +02:00
Mike Hommey
aa1c5d1143 Bug 747322 - Fix jemalloc mmap wrapper for s390x. r=jlebar,a=npotb 2012-04-23 08:31:55 +02:00
Gian-Carlo Pascutto
30618dd6a5 Bug 743715 - Cannot build Fennec without jemalloc. r=glandium 2012-04-11 14:12:34 +02:00
Mike Hommey
c622246991 Bug 738709 - Don't call pthread_atfork from jemalloc on OSX. r=jlebar 2012-04-05 09:20:54 +02:00
Mike Hommey
8707a0e9c7 Bug 738176 - Completely disable jemalloc when it's supposed to be disabled on OSX, and cleanup exposed APIs. r=jlebar,r=khuey 2012-04-05 09:20:53 +02:00
Mike Hommey
32fccdfe72 Bug 736963 - Move jemalloc'ed strdup/strndup definitions. r=jlebar,r=ted 2012-03-31 09:23:19 +02:00
Mike Hommey
6e80036c6d Bug 737084 - Do pthread_atfork in jemalloc on mac and android. r=blassey,r=khuey 2012-03-22 08:01:51 +01:00
Mike Hommey
6c75c64ae7 Bug 736959 - Don't wrap PR_Malloc and other NSPR allocation functions. r=khuey 2012-03-22 08:01:27 +01:00
Michael Wu
6d78780b31 Bug 737175 - Make jemalloc build on ICS, r=khuey,glandium 2012-03-18 23:33:46 -04:00
Justin Lebar
4a19d1c912 Bug 731696 - Revert jemalloc isalloc test code added in bug 703087. r=khuey 2012-02-29 11:25:00 -05:00
Jonathan Kew
b6a6512827 bug 723472 - don't trigger an OOM abort on a zero-size allocation. r=cjones 2012-02-02 14:34:22 +00:00
Nicholas Nethercote
dd32d38d63 Bug 715453 - Remove computedSize from nsMallocSizeOfFun. r=jlebar,bhackett.
--HG--
extra : rebase_source : a65039a407daab45360a5b375b53cbf1bc05b7f6
2012-01-25 00:52:51 -08:00
Benjamin Smedberg
7cf5500909 Bug 716638 - Annotate the size of a failed allocation due to OOM and submit it with the crash report, r=ted
--HG--
extra : rebase_source : 5b7d10cb2e117deabb89b75ec3f3b1a221b3c80b
2012-01-24 11:08:51 -05:00
Mike Hommey
0c75d35a82 Bug 697301 - Avoid the compiler making optimizations to mozalloc_abort that end up corrupting stack traces. r=cjones 2012-01-13 07:24:17 +01:00
Ms2ger
8d0ec65724 Bug 717441 - Backout bug 715093 / changeset d5f3e38021fd for Fennec crashes. 2012-01-12 21:35:48 +01:00
Ms2ger
3c01638b1d Bug 715093 - Get rid of MOZALLOC_INLINE in favour of MOZ_ALWAYS_INLINE; r=glandium 2012-01-11 09:22:16 +01:00
Mike Hommey
1f4341fcce Bug 701371 - Rename mozutils to mozglue, and move it to top-level. r=khuey,a=brendan
--HG--
rename : memory/mozutils/Makefile.in => mozglue/Makefile.in
rename : memory/mozutils/Makefile.in => mozglue/build/Makefile.in
rename : memory/mozutils/dummy.cpp => mozglue/build/dummy.cpp
rename : memory/mozutils/fixcrt.py => mozglue/build/fixcrt.py
rename : memory/mozutils/mozutils.def.in => mozglue/build/mozglue.def.in
2011-12-28 08:24:02 +01:00
Jacek Caban
39c91c27af Bug 712584 - Properly use .def files on mingw builds r=khuey 2011-12-27 10:51:53 +01:00
Jeff Walden
95c80127e7 Bug 711775 - Implement MOZ_NORETURN to encapsulate this-function-doesn't-return semantics. r=cjones
--HG--
extra : rebase_source : d56f3ef47e11c42b5fe6a442e13fd6202208914f
2011-12-17 16:45:29 -05:00
Nicholas Nethercote
5ec7ee41ae Bug 704400 - Implement --enable-dmd. r=khuey. 2011-12-08 19:09:36 -08:00
Ben Turner
e412e07a3c Bug 703660 - IndexedDB: Compress structured clone data with Snappy. r=sicking+khuey. 2011-12-07 15:24:20 -08:00
Phil Ringnalda
86e9e43562 Back out 8941e2b7a0bf (bug 703660) for Windows PGO build failures 2011-12-07 08:41:02 -08:00
Ben Turner
c4984bb490 Bug 703660 - IndexedDB: Compress structured clone data with Snappy. r=sicking+khuey.
--HG--
extra : transplant_source : 55%9D%86m%D8%18%87J%5C%E1%E3%93P%AF.%B7%D0%8EQ
2011-12-07 00:10:13 -08:00
Igor Bukanov
e3704d7d51 bug 571209 - option to use compile-time constants, not parameters configured at runtime, for maximal jemalloc performance. r=justin.lebar 2011-10-26 10:17:34 +02:00
Nicholas Nethercote
f1e77095c2 Bug 698968 - Add mallocSizeOf functions and start using them. r=jlebar,bhackett,jfkthame, sr=bz. 2011-11-27 19:03:14 -08:00
Justin Lebar
b1ebcdd516 Bug 703087 - (Temporarily) enable assertion in isalloc_validate in release builds, to test for potential ozone_size corruption. r=khuey 2011-11-16 17:48:02 -05:00
Justin Lebar
ee29db2928 Back out bug 703087 (rev b5c891d2e68a) due to red. 2011-11-21 09:27:36 -05:00
Justin Lebar
4efb9fb173 Bug 703087 - (Temporarily) enable release-build assertion in isalloc_validate in release builds, to test for potential ozone_size corruption. r=khuey 2011-11-16 17:48:02 -05:00
Justin Lebar
6fbbaa58ea Bug 702250 - Disable jemalloc on mac 10.5 due to crash in ozone_size (apparent OS bug). r=khuey
This is likely to regress a number of benchmarks.

--HG--
extra : rebase_source : 6831d8b3a846ec3193449132bef1648d426356db
2011-11-21 09:02:17 -05:00
Justin Lebar
2f7f0fad1e Bug 697085 - Link to Mac malloc header in memory/jemalloc/osx_zone_types.h. DONTBUILD r=gerv
--HG--
extra : rebase_source : f5d804930cdfc93e6e0460fa28f1625b4e66e277
2011-11-20 21:19:00 -05:00
Phil Ringnalda
bea48586cb Back out a3fcfb7d6647 (bug 702250) because it turned 10.5 opt tests pure orange 2011-11-17 19:41:44 -08:00
Justin Lebar
001f03627c Bug 702250 - Disable jemalloc on mac 10.5 due to crash in ozone_size (apparently due to OS bug). r=khuey
This will likely regress a number of benchmarks.
2011-11-17 18:06:23 -05:00
Michael Wu
34d5f356e4 Bug 694206 - Add Gonk (B2G) widget backend, r=cjones 2011-11-10 16:17:46 -08:00
Justin Lebar
30dcc3c5e0 Bug 699395 - Modify zone_good_size to call je_malloc_usable_size_in_advance. r=njn
--HG--
extra : rebase_source : 24feb93e8ceebd74a8dbcb0084f7f27ecf6495e3
2011-11-07 16:32:36 -05:00
Justin Lebar
0b9d7ca8e2 Bug 699101 - Warn when NO_MAC_JEMALLOC is set on i386 machines, because it doesn't work there. r=khuey 2011-11-04 11:41:53 -04:00
Nicholas Nethercote
6313e20983 Bug 678977 - Teach sqlite to use jemalloc directly when applicable. code=nnethercote,khuey. r=khuey,sdwilsh,jlebar. 2011-11-03 20:53:41 -07:00
Justin Lebar ext:(%2C%20Steven%20Michaud%20%3Csmichaud%40pobox.com%3E)
87950540cd Bug 694896 - Fix jemalloc hangs and crashes on Mac 10.7, enable jemalloc on Mac 10.7, and make mmap'ing pages in jemalloc faster on Linux and Mac. r=khuey 2011-10-25 16:25:50 -04:00