Commit Graph
42 Commits
Author SHA1 Message Date
Mike Hommey 16c7c0f06b 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++.
2017-05-16 18:46:02 +09:00
Carsten "Tomcat" Book 1ff1e94ded Backed out changeset b56224bf370d (bug 1365194) 2017-05-17 11:43:26 +02:00
Mike Hommey 4578277dba 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++.
2017-05-16 18:46:02 +09:00
Emanuel Hoogeveen 363f9560d9 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 fb486d1019 Bug 1271165 - Part 6: Change the new functions to MFBT_API to export them on OSX. r=jandem 2016-08-16 07:12:00 -04:00
Emanuel Hoogeveen 97635674b1 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 199ff4604e bug 1171122 - Swap some XP_MACOSX for XP_DARWIN in mozalloc. r=glandium 2015-03-27 22:53:02 -04:00
Mike Hommey f27efae645 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 118a0bae88 Bug 1142434 - Remove moz_memalign/moz_valloc, nothing uses them. r=njn 2015-03-31 12:26:45 +09:00
Mike Hommey 2367cde41a Bug 1142434 - Remove moz_strdup/moz_strndup, nothing uses them. r=njn 2015-03-31 12:26:45 +09:00
Mike Hommey b8e8edd13f Followup for bug 868814 - replace non-obvious #if with simpler alternative. rs=njn 2015-03-17 10:04:20 +09:00
Mike Hommey b08da88474 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 0beffc59bb Backed out changeset ff08cf105def (bug 1141731) for osx bustage 2015-03-10 18:34:28 -07:00
Mike Hommey 76f9f15a17 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 d52f1bb3cd Bug 868814 - Fold mozalloc library into mozglue. r=njn 2015-03-10 10:01:52 +09:00
Chris Peterson f835b48bc8 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 860f2c1f29 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 0837fba225 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 ed8168c2a4 bug 822717 - remove checks for old gcc r=glandium 2012-12-18 13:22:28 -05:00
Jan Beich b2c2b96ca4 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 7f0e8873cc 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 cb6a072c2a Bug 716478 - update licence to MPL 2. 2012-05-21 12:12:37 +01:00
Gian-Carlo Pascutto 2af38a24d4 Bug 743715 - Cannot build Fennec without jemalloc. r=glandium 2012-04-11 14:12:34 +02:00
Mike Hommey f9e07dcd00 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 ee7783b5af 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 c1dd090b4c Bug 715453 - Remove computedSize from nsMallocSizeOfFun. r=jlebar,bhackett. 2012-01-25 00:52:51 -08:00
Benjamin Smedberg 42b67a523b Bug 716638 - Annotate the size of a failed allocation due to OOM and submit it with the crash report, r=ted 2012-01-24 11:08:51 -05:00
Nicholas Nethercote 12a6871387 Bug 704400 - Implement --enable-dmd. r=khuey. 2011-12-08 19:09:36 -08:00
Nicholas Nethercote c0681f567c 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 afd3b0fec6 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 d8519ed4e6 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 6301483f69 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 153168a17a Bug 515492: Revert some bogus changes for hopefully the last android build bustage fix. 2011-06-27 20:17:22 -07:00
Kyle Huey 6d65bebedc Bug 515492: Make jemalloc work on VS 2010. r=ted,pbiggar 2011-06-27 12:44:51 -07:00
Landry Breuil e23df20230 Bug 633857 - missing #includes for OpenBSD (mozalloc part). r=cjones 2011-04-14 17:49:38 +09:00
Brad Lassey 443f950eef bug 559263 - make jemalloc work with android, follow up patch r=ted
(transplanted from 098cf0d0c599fdcfedbc6ee5aadf01259e9dcd09)
2010-06-05 13:15:50 -04:00
Vladimir Vukicevic 72a0025709 b=566447; add presshell memory reporter; r=bz 2010-05-31 19:19:35 -07:00
Brad Lassey 414fcaa685 bug 559263 - implement jemalloc for android r=vlad 2010-05-25 11:28:14 -04:00
Chris Jones e590b07136 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 8c13f6c655 Bug 550666: Fix FreeBSD bustage in mozalloc. r=bsmedberg 2010-04-10 17:29:46 -04:00
Chris Jones 4eb274531d 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 91ed1da469 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