Mike Hommey
0400284f88
Bug 1365194 - Make `extern "C"` part of MOZ_MEMORY_API and MOZ_JEMALLOC_API. r=njn
...
This avoids many additions of `extern "C"` in C++ code and will avoid
having to do the same to mozjemalloc once built as C++.
--HG--
extra : rebase_source : af55696262f40a9dd16a19c29edcb9bb307d4957
2017-05-16 18:46:02 +09:00
Carsten "Tomcat" Book
9c3f61e278
Backed out changeset b56224bf370d (bug 1365194)
2017-05-17 11:43:26 +02:00
Mike Hommey
2bd75405bc
Bug 1365194 - Make `extern "C"` part of MOZ_MEMORY_API and MOZ_JEMALLOC_API. r=njn
...
This avoids many additions of `extern "C"` in C++ code and will avoid
having to do the same to mozjemalloc once built as C++.
--HG--
extra : rebase_source : af55696262f40a9dd16a19c29edcb9bb307d4957
2017-05-16 18:46:02 +09:00
Emanuel Hoogeveen
8210833803
Bug 1294732 - Back out all of bug 1271165 as it has served its purpose. r=glandium
2016-08-23 08:45:00 -04:00
Emanuel Hoogeveen
581ecef4dd
Bug 1271165 - Part 6: Change the new functions to MFBT_API to export them on OSX. r=jandem
...
--HG--
extra : rebase_source : cc3d6cd7cec9c822904364ace811d2c0dff98eff
2016-08-16 07:12:00 -04:00
Emanuel Hoogeveen
57b1d1e8f2
Bug 1271165 - Part 2: Hook the new functions up and provide dummy implementations where needed. r=ehoogeveen
2016-08-12 07:37:00 -04:00
Ted Mielczarek
7958285841
bug 1171122 - Swap some XP_MACOSX for XP_DARWIN in mozalloc. r=glandium
...
--HG--
extra : commitid : 7pqjkOrdp47
extra : rebase_source : 08da613870a54423b33cecc615f46324db63f384
2015-03-27 22:53:02 -04:00
Mike Hommey
26b3c4f285
Bug 1138293 - Remove moz_malloc/moz_free/moz_realloc/moz_calloc. r=njn
...
We need to use _impl variants within mozalloc.h when they are defined because
of how mozglue.dll is linked on Windows, where using malloc/free would use
the symbols from the MSVCRT instead of ours.
2015-03-31 12:32:49 +09:00
Mike Hommey
7fef46c799
Bug 1142434 - Remove moz_memalign/moz_valloc, nothing uses them. r=njn
2015-03-31 12:26:45 +09:00
Mike Hommey
d0806aa5f6
Bug 1142434 - Remove moz_strdup/moz_strndup, nothing uses them. r=njn
2015-03-31 12:26:45 +09:00
Mike Hommey
5b1c46a9cb
Followup for bug 868814 - replace non-obvious #if with simpler alternative. rs=njn
2015-03-17 10:04:20 +09:00
Mike Hommey
b8f2a1380c
Bug 1141731 - Avoid problems caused by the inclusion of mozmemory.h in mozalloc.cpp by including mozmemory_wrap.h instead. r=njn
2015-03-11 16:03:53 +09:00
Wes Kocher
b9f1c057ec
Backed out changeset ff08cf105def (bug 1141731) for osx bustage
2015-03-10 18:34:28 -07:00
Mike Hommey
e5effb28c1
Bug 1141731 - Avoid problems caused by the inclusion of mozmemory.h in mozalloc.cpp by including mozmemory_wrap.h instead. r=njn
2015-03-11 09:52:04 +09:00
Mike Hommey
364038011c
Bug 868814 - Fold mozalloc library into mozglue. r=njn
...
--HG--
rename : memory/mozalloc/moz.build => memory/mozalloc/staticruntime/moz.build
2015-03-10 10:01:52 +09:00
Chris Peterson
793516eb34
Bug 1108934 - Fix -Wunused-const-variable warning-as-error in non-unified build of memory/mozalloc. r=glandium
2014-12-08 21:26:27 -08:00
Ehsan Akhgari
d91d200572
Bug 969757 - Remove the dead code in our tree which pretends to support OS/2; r=roc,mcmanus,gps,jorendorf,bsmedberg sr=bsmedberg
2014-02-10 17:57:01 -05:00
Daniel Holbert
4908bbab5e
Bug 926275: Remove mozalloc_macro_wrappers.h and mozalloc_undef_macro_wrappers.h. r=bsmedberg
2013-10-31 19:39:03 -07:00
Trevor Saunders
801c9b79ba
bug 822717 - remove checks for old gcc r=glandium
2012-12-18 13:22:28 -05:00
Jan Beich
b905e6a742
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
a0d130c9ab
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
Gervase Markham
82ff7027aa
Bug 716478 - update licence to MPL 2.
2012-05-21 12:12:37 +01:00
Gian-Carlo Pascutto
12e5d134c7
Bug 743715 - Cannot build Fennec without jemalloc. r=glandium
2012-04-11 14:12:34 +02:00
Mike Hommey
609e12c771
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
Jonathan Kew
0226614b64
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
7559a70a04
Bug 715453 - Remove computedSize from nsMallocSizeOfFun. r=jlebar,bhackett.
...
--HG--
extra : rebase_source : a65039a407daab45360a5b375b53cbf1bc05b7f6
2012-01-25 00:52:51 -08:00
Benjamin Smedberg
587594165b
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
Nicholas Nethercote
6bbcf3b4f8
Bug 704400 - Implement --enable-dmd. r=khuey.
2011-12-08 19:09:36 -08:00
Nicholas Nethercote
6c6258e659
Bug 698968 - Add mallocSizeOf functions and start using them. r=jlebar,bhackett,jfkthame, sr=bz.
2011-11-27 19:03:14 -08:00
Mike Hommey
7f22909cc5
Bug 680373 - Link jemalloc into mozutils instead of mozalloc on Android. r=blassey,r=pbiggar
2011-08-24 12:55:13 +02:00
Paul Biggar ext:(%2C%20Jason%20Evans%20%3Cjasone%40canonware.com%3E%20and%20Dale%20Kim%20%3Cdalekim1%40illinois.edu%3E)
b960b62118
Bug 414946 (part 1): Fix jemalloc on Mac, but leave disabled (r=pavlov)
...
Overwrite the OSX default zone allocator, taking into account the malloc_zone_t
version (supported versions are 3, 6, and 8) for Leopard, Snow Leopard and
Lion. jemalloc can be dynamically disabled for unknown malloc_zone_t versions,
for OSX 10.8 and beyond.
The changeset does not enable jemalloc, to allow for easy disabling if there's
a problem. It will be enabled in the next changeset.
This should be a 15-20% improvement in memory usage.
2011-05-21 20:27:00 -07:00
Kyle Huey
23be178828
Bug 515492: Put back the last line because I'm too clever by half. a=mfbt
2011-06-27 20:56:05 -07:00
Kyle Huey
3f9ef38ff1
Bug 515492: Revert some bogus changes for hopefully the last android build bustage fix.
2011-06-27 20:17:22 -07:00
Kyle Huey
224832d24d
Bug 515492: Make jemalloc work on VS 2010. r=ted,pbiggar
2011-06-27 12:44:51 -07:00
Landry Breuil
e37388df67
Bug 633857 - missing #includes for OpenBSD (mozalloc part). r=cjones
2011-04-14 17:49:38 +09:00
Brad Lassey
e64a60da7d
bug 559263 - make jemalloc work with android, follow up patch r=ted
...
(transplanted from 098cf0d0c599fdcfedbc6ee5aadf01259e9dcd09)
--HG--
extra : transplant_source : %09%8C%F0%D0%C5%99%FD%CF%ED%BCn%E5%AA%DF%01%25%9E%9D%CD%09
2010-06-05 13:15:50 -04:00
Vladimir Vukicevic
73cbd73f4a
b=566447; add presshell memory reporter; r=bz
2010-05-31 19:19:35 -07:00
Brad Lassey
74db90d53e
bug 559263 - implement jemalloc for android r=vlad
2010-05-25 11:28:14 -04:00
Chris Jones
7af55eecbb
Bug 550692: Wrap posix_memalign, memalign, and valloc if jemalloc provides them and the OS doesn't. r=bsmedberg
2010-04-21 23:41:40 -05:00
Marco Perez
7fda312bc5
Bug 550666: Fix FreeBSD bustage in mozalloc. r=bsmedberg
2010-04-10 17:29:46 -04:00
Chris Jones
aeb1d69308
Bug 550401: Do the __declspec import/export dance in mozalloc to avoid MSVC warnings. r=bsmedberg
2010-04-08 13:05:02 -05:00
Chris Jones
58d2b77983
Bug 441324, part 2: Implement libmozalloc with support for fallible and infallible malloc et al. and |operator new|s. r=bsmedberg
2010-03-03 23:02:56 -06:00