Nigel Babu
eb13864a70
Backed out changeset a67867200ec3 (bug 1142403) for Linuxx64 M-e10s(2) bustage.
2015-09-08 13:14:05 +05:30
Mike Hommey
1e7025fdf4
Bug 1142403 - Don't build jemalloc3 with unified sources when built with --enable-debug. r=mshal
...
When built with --enable-debug, jemalloc3 makes headers define functions that
are normally inlined, and that prevents unified sources from working.
2015-09-08 13:13:25 +09:00
Mike Hommey
0cf8973ede
Bug 1202523 - Use the default chunk size with jemalloc 4. r=njn
2015-09-08 13:10:22 +09:00
Mike Hommey
0efccdc82c
Bug 1201792 - s/MOZ_JEMALLOC3/MOZ_JEMALLOC4/. r=njn
2015-09-04 15:15:47 +09:00
Mike Hommey
4a986d4f4b
Bug 1201738 - Update jemalloc4 to 594c759
+ two pending patches. r=njn
...
Also do a dummy change to configure.in to trigger a reconfigure, working
around bug 1021347.
2015-09-04 14:35:55 +09:00
Mike Hommey
748d14b77a
Bug 1141079 - Setup custom jemalloc chunk hooks to keep RSS usage low. r=njn
2015-09-04 14:35:54 +09:00
Mike Hommey
4fb6c55f9d
Bug 1141079 - Make jemalloc_config.c a C++ source file. r=ted
...
--HG--
rename : memory/build/jemalloc_config.c => memory/build/jemalloc_config.cpp
2015-09-04 14:35:54 +09:00
Jan Beich
1df901bdce
Bug 1201462 - Don't count arena allocated metadata once per bin. r=glandium
2015-09-04 14:35:52 +09:00
Nicholas Nethercote
e5dc6b8368
Bug 1200623 - Fix FdPrintf.o link error in --disable-optimize builds. r=glandium.
...
--HG--
extra : rebase_source : 2225f8496f540a01a19477e6e5e77cbc56877dea
2015-09-01 17:52:56 -07:00
Nicholas Nethercote
1dface560b
Bug 1044077 - Tweak some jemalloc constants. r=glandium.
...
--HG--
extra : rebase_source : bfdb94191aa0872fd1aff52f143c63b0a3e41848
2015-07-14 20:35:37 -07:00
Nicholas Nethercote
a6522f55a6
Bug 1200097 - Fix warnings in logalloc. r=glandium.
...
--HG--
extra : rebase_source : 5f49243f7b46b411ec845c3f747fdb14bc959b07
2015-08-31 16:53:13 -07:00
Nicholas Nethercote
f44287005f
Bug 1198334 (part 1) - Replace the opt-in FAIL_ON_WARNINGS with the opt-out ALLOW_COMPILER_WARNINGS. r=glandium.
...
The patch removes 455 occurrences of FAIL_ON_WARNINGS from moz.build files, and
adds 78 instances of ALLOW_COMPILER_WARNINGS. About half of those 78 are in
code we control and which should be removable with a little effort.
--HG--
extra : rebase_source : 82e3387abfbd5f1471e953961d301d3d97ed2973
2015-08-27 20:44:53 -07:00
Chris Peterson
1416e566de
Bug 1198124 - Enable -Wshadow in directories that have no -Wshadow warnings. r=glandium
2015-08-25 09:14:38 -07:00
Mike Hommey
b6607b1ad5
Bug 1189967 - Avoid conflicting declarations for our raise wrappers on Windows. r=nfroyd
2015-08-23 22:22:26 +09:00
Mike Hommey
dea9486c28
Bug 1120793 - Remove obsolete _Throw wrapping. r=froydnj
2015-08-21 14:28:41 +09:00
Guilherme Goncalves
148b18ba80
Bug 1125514 - Use jemalloc's metadata statistics to compute bookkeeping. r=glandium
2015-08-20 10:05:44 +09:00
Andrew McCreight
ae06b3dd9d
Bug 1179042 - Add a script for analyzing memory blocks using a heap scan DMD log. r=njn DONTBUILD
...
Based on:
0a68e57a2c/dmd/block_analyzer.py
2015-08-17 16:48:10 -07:00
Mike Hommey
3ec8bddc11
Bug 1142412 - Remove last jemalloc patch by using a workaround when running its configure. r=mshal
2015-08-18 08:42:24 +09:00
Mike Hommey
54863d2784
Bug 1142412 - Update memory/jemalloc to 4.0.0 release. r=njn
2015-08-18 08:42:23 +09:00
Nathan Froyd
cc763887fa
Bug 1186444 - part 1 - move uses of MODULE_OPTIMIZE_FLAGS to moz.build's CFLAGS; r=mshal
...
Now that we have moz.build, we can be guaranteed that any flags we add
in moz.build will be added after everything else has been setup. So any
uses of MODULE_OPTIMIZE_FLAGS can be moved to moz.build's
CFLAGS/CXXFLAGS without any unusual repercussions. We do have to verify
that MOZ_OPTIMIZE is in effect, though.
2015-07-22 11:04:32 -04:00
Mike Hommey
d3beba14ab
Bug 1137580 - Do not use system realloc in mozjemalloc-exposed _recalloc. r=njn
2015-08-07 16:27:28 +09:00
Nathan Froyd
5b16595e9b
Bug 1191815 - move jemalloc CFLAGS definition to moz.build; r=mshal
2015-08-06 17:22:56 -04:00
Makoto Kato
ed0bf31fba
Bug 830801 - Part 3. Remove NOMINMAX define from cpp source. r=mshal
2015-08-03 10:07:20 +09:00
Ehsan Akhgari
85cda505f8
Bug 1188209 - Fix more constructors in memory; r=njn
2015-07-28 08:53:29 -04:00
Birunthan Mohanathas
a8939590de
Bug 1182996 - Fix and add missing namespace comments. rs=ehsan
...
The bulk of this commit was generated by running:
run-clang-tidy.py \
-checks='-*,llvm-namespace-comment' \
-header-filter=^/.../mozilla-central/.* \
-fix
2015-07-13 08:25:42 -07:00
Andrew McCreight
6e608d39d9
Bug 1058178, part 2 - Implement address clamping analysis for DMD scan logs. r=njn
...
This adds a new option --clamp-contents to dmd.py. This replaces every value
contained in the memory contents in the log with a pointer to the start of a live
block, if the value is a pointer into the middle of that block. All other values
are replaced with 0. This conservative analysis makes it easier to determine
which blocks point to other blocks.
2015-06-30 11:54:15 -07:00
Andrew McCreight
1f8cde6f73
Bug 1058178, part 1 - Implement DMD heap scanning mode. r=njn
...
This implements a new "scan" mode for DMD that records the address
and contents of every live unsampled block in the DMD log. This
enables the low-level analysis of references from one block to
another, which can help leak investigations.
2015-06-30 11:54:15 -07:00
Benoit Girard
8d6a67f6d3
Bug 1172216 - Move nsStackwalk to mozglue. r=glandium
...
--HG--
rename : xpcom/base/nsStackWalk.cpp => mozglue/misc/StackWalk.cpp
rename : xpcom/base/nsStackWalk.h => mozglue/misc/StackWalk.h
extra : commitid : EMbWGfjKvdq
extra : rebase_source : b7308eb569cc1a019d3b7a92aaff0de7a49b5682
2015-06-10 16:32:45 -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
Andrew McCreight
e1908881c5
Bug 1172568 - Run test_dmd.js on OS X. r=njn
2015-06-10 07:24:00 -04:00
Mike Hommey
68221d7d35
Bug 1172668 - Unbreak DMD on OS X after bug 1168719. r=gps
...
Bug 1168719 added a generic replace malloc library which name happened to be
the same as the existing dummy library used to link replace malloc on OSX.
Change the name of that dummy library.
2015-06-10 10:49:22 +09:00
Mike Hommey
f61d5cbfd5
Bug 1172632 - Don't guess malloc_usable_size type of argument based on ANDROID_VERSION in mozjemalloc, but use the result of the configure test instead. r=njn
2015-06-10 10:49:21 +09:00
Andrew McCreight
2a29c1b921
Bug 1171647, part 2 - Remove redundant assertion for dark matter mode. r=njn
2015-06-06 14:44:19 -07:00
Andrew McCreight
7cb7fe1ebd
Bug 1171647, part 1 - Define a new function to convert the mode to a string. r=njn
2015-06-06 14:44:19 -07:00
Mike Hommey
985ca5fd67
Bug 1168719 - Generic replace-malloc library. r=njn
2015-06-05 10:40:58 +09:00
Christian Holler
3091dad435
Bug 1170177 - Disable our own abort() method with MOZ_ASAN. r=froydnj
2015-06-02 23:25:01 +02:00
Leila Hadji
b544725c2c
Bug 498166 - malloc_init deadlock due to pthread_atfork. r=glandium
2015-05-22 06:01:00 -04:00
David Major
0c7676f78d
Bug 1135583: Prevent the inclusion of Char16.h in VS2015's fallible.obj. r=glandium
...
--HG--
extra : rebase_source : 1d1e1c9918461d692996d27becc857e60caaebd0
2015-05-21 08:03:48 -04:00
Mike Hommey
c917606f95
Bug 1043692 - Move DIST_INSTALL to moz.build. r=gps
2015-05-12 07:55:22 +09:00
Mike Hommey
fe90037862
Bug 1043692 - Add a DIST_INSTALL variable to moz.build, and replace NO_DIST_INSTALL with it. r=gps
2015-05-12 07:55:21 +09:00
Mike Hommey
924c9eb636
Bug 1134923 - Remove NS_Alloc/NS_Realloc/NS_Free. r=nfroyd
...
They are kept around for the sake of the standalone glue, which is used
for e.g. webapprt, which doesn't have direct access to jemalloc, and thus
still needs a wrapper to go through the xpcom function list and get to
jemalloc from there.
2015-05-01 09:40:30 +09:00
ziyunfei
e1db0f779e
Bug 1102219 - Part 4: Replace `String.prototype.contains` with `String.prototype.includes` in chrome code. r=till
2015-04-30 00:32:05 +09:00
Ehsan Akhgari
9009ff92f8
Bug 1147243 - Build memory/jemalloc in unified mode; r=glandium
2015-04-29 09:47:36 -04:00
Paul Rouget
d60a1bd75e
Bug 1156628 - Don't limit the number of unused dirty pages kept by jemalloc on B2G desktop. r=gsvelto, r=glandium
2015-04-24 03:58:00 -04:00
Jed Davis
5841b01411
Bug 1102388 - Fix DMD static constructor ordering dependency. r=mccr8
...
Sometimes, at least on Linux, DMDFuncs::sSingleton's static initializer
(in libxul) was being called before sDMDBridge's (in libdmd).
Thus sDMDBridge wasn't constructed yet in the path where its
address is taken, passed down through {replace_,}get_bridge to
ReplaceMallocBridge::Get, and its mVersion field is read.
This patch uses dynamic allocation, following what's done for other
globals in the same situation in this file.
Also, naming convention fix: leading "s" is for C++ class statics;
C-style static globals should be "g".
--HG--
extra : rebase_source : 4a6447760555aa11109749c612094ba1694b41f6
2015-04-20 23:05:00 +02:00
Ehsan Akhgari
399276d5fc
Bug 1153348 - Add an analysis to prohibit operator bools which aren't marked as either explicit or MOZ_IMPLICIT; r=jrmuizel
...
This is the counterpart to the existing analysis to catch
constructors which aren't marked as either explicit or
MOZ_IMPLICIT.
2015-04-21 21:40:49 -04:00
Wes Kocher
638b28b8e0
Backed out changeset 02e6a50741a9 (bug 1153348) to hopefully fix the static bustage CLOSED TREE
2015-04-21 15:47:40 -07:00
Ehsan Akhgari
3d21a05904
Bug 1153348 - Add an analysis to prohibit operator bools which aren't marked as either explicit or MOZ_IMPLICIT; r=jrmuizel
...
This is the counterpart to the existing analysis to catch
constructors which aren't marked as either explicit or
MOZ_IMPLICIT.
2015-04-21 16:31:58 -04:00
Jed Davis
83dc2d2c83
Bug 1128705 - Don't redefine PAGE_SIZE in DMD if it's already defined. r=erahm
...
--HG--
extra : rebase_source : 978b2d5440e448dec97affa98c8f5c712fcbb051
2015-04-20 14:15:00 +02:00
Jim Blandy
a1f8669a0c
Bug 1062473: Use mozalloc's moz_malloc_size_of in the JS shell, not our own custom copy. r=glandium
...
--HG--
extra : rebase_source : 0d35302f40bbc602d0338d1bcb563b045babd441
2015-04-13 16:11:32 -07:00