Mike Shal
009ce11f2a
Bug 875013 - Remove VPATH; r=glandium
2013-11-21 14:57:06 -05:00
Markus Stange
5302a0f06c
Bug 945131 - Fix DMD build by using const char*. r=njn
...
DONTBUILD because NPOTB
2013-12-02 23:13:20 +01:00
Catalin Iacob
1b51a108f3
Bug 819839 - Part 2 - Print file name and line number if available in DMD report. r=njn
2013-11-29 16:09:42 +01: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
Catalin Iacob
31159dc048
Bug 940218 - Build memory/ in unified mode; r=ehsan
2013-11-25 12:09:59 +01:00
Ehsan Akhgari
2ec4903801
Backed out changeset c3d41ab0a2df (bug 940218) for causing bug 941616
...
--HG--
extra : rebase_source : c0d9b2840ddb6a6b88b86cfc3e3a6810ac9e37e2
2013-11-21 14:28:52 -05:00
Nathan Froyd
3734e2e69f
Bug 941616 - fix jemalloc build for --enable-replace-malloc; r=ehsan
2013-11-21 09:46:32 -05:00
Chris Peterson
6c5ab32845
Bug 940218 - Build memory/jemalloc and friends in unified mode. r=glandium
2013-11-17 01:16:36 -08:00
Mike Hommey
636b672657
Bug 914245 - Move FORCE_SHARED_LIB to moz.build. r=mshal
2013-11-19 11:47:45 +09:00
Mike Hommey
f0d1cd1e10
Bug 939044 - Remove most definitions of MODULE. r=mshal
2013-11-19 11:47:39 +09:00
Mike Hommey
9c5c5d8f00
Bug 939039 - Remove now useless FORCE_STATIC_LIB definitions. r=gps
2013-11-19 11:47:28 +09:00
Mike Hommey
f81885e53b
Bug 935881 - Use FINAL_LIBRARY for all (fake) libraries that end up linked in a single other library. r=gps
2013-11-19 11:47:14 +09:00
Birunthan Mohanathas
192d1ba4c1
Bug 784739 - Switch from NULL to nullptr in miscellaneous directories; r=ehsan
2013-11-11 14:17:14 -05:00
Daniel Holbert
17bbc689ce
Bug 926275: Remove mozalloc_macro_wrappers.h and mozalloc_undef_macro_wrappers.h. r=bsmedberg
2013-10-31 19:39:03 -07:00
David Major
113eaa4daf
Bug 931196 - Remove MOZ_TEMP_INVESTIGATION poisoning code. r=glandium
2013-10-31 11:52:08 -04:00
Ted Mielczarek
46db2c02bd
Bug 930674 - convert VISIBILITY_FLAGS in Makefile.in to NO_VISIBILITY_FLAGS in moz.build. r=mshal
2013-10-24 15:06:19 -04:00
Cykesiopka
be7f216715
Bug 914270 - Part 2: Manual moves. r=joey
2013-10-24 18:52:00 +01:00
Cykesiopka
e0bcd6aebc
Bug 914270 - Part 1: Simple/Automated moves. r=joey
2013-10-24 18:51:00 +01:00
Mike Hommey
f1c0c07862
Bug 929905 - Consolidate sources in moz.build. r=gps
2013-10-25 08:23:05 +09:00
Mike Hommey
5072f65f8c
Bug 913268 - Make CPP_SOURCES a StrictOrderingOnAppendList. r=mshal
2013-10-24 08:00:23 +09:00
Masatoshi Kimura
f54ab71d02
Bug 928210 - Get rid of MOZ_INLINE
2013-10-22 06:34:24 +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
Ms2ger
563e32eb62
Bug 923489 - Part c: qualify paths in memory/replace/dmd/; r=gps
2013-10-05 13:28:25 +02:00
Ms2ger
cfd2b19df5
Bug 923489 - Part b: qualify paths in memory/replace/jemalloc/; r=gps
2013-10-05 12:19:08 +02:00
Ms2ger
7a421fd90e
Bug 923489 - Part a: qualify paths in memory/jemalloc/; r=gps
2013-10-05 12:18:36 +02:00
Mike Hommey
05b3f24e0e
Bug 912293 - Remove now redundant boilerplate from Makefile.in. r=gps
2013-09-05 09:01:46 +09:00
Brian O'Keefe
0ee041b9fd
Bug 875934 - Move LIBRARY_NAME to moz.build, batch 3; r=mshal
2013-08-15 09:02:09 -04: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
21409e5d2c
Merge m-c to inbound.
2013-08-02 11:07:57 +02:00
Ms2ger
fe9c33f5f4
Bug 897921 - Remove some dead assignments in makefiles; r=mshal
2013-08-02 09:03:55 +02:00
Justin Lebar
ada67088ce
Bug 899880 - Fix jemalloc3 so it works after bug 898558, which changed jemalloc's stats struct. r=glandium
2013-08-01 16:37:54 -07:00
Ehsan Akhgari
085494b95d
Bug 895322 - Part 1: Replace the usages of MOZ_STATIC_ASSERT with C++11 static_assert; r=Waldo
...
This patch was mostly generated by running the following scripts on the codebase, with some
manual changes made afterwards:
# static_assert.sh
#!/bin/bash
# Command to convert an NSPR integer type to the equivalent standard integer type
function convert() {
echo "Converting $1 to $2..."
find . ! -wholename "*nsprpub*" \
! -wholename "*security/nss*" \
! -wholename "*/.hg*" \
! -wholename "obj-ff-dbg*" \
! -name nsXPCOMCID.h \
! -name prtypes.h \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.cc" \
-o -iname "*.mm" \) | \
xargs -n 1 `dirname $0`/assert_replacer.py #sed -i -e "s/\b$1\b/$2/g"
}
convert MOZ_STATIC_ASSERT static_assert
hg rev --no-backup mfbt/Assertions.h \
media/webrtc/signaling/src/sipcc/core/includes/ccapi.h \
modules/libmar/src/mar_private.h \
modules/libmar/src/mar.h
# assert_replacer.py
#!/usr/bin/python
import sys
import re
pattern = re.compile(r"\bMOZ_STATIC_ASSERT\b")
def replaceInPlace(fname):
print fname
f = open(fname, "rw+")
lines = f.readlines()
for i in range(0, len(lines)):
while True:
index = re.search(pattern, lines[i])
if index != None:
index = index.start()
lines[i] = lines[i][0:index] + "static_assert" + lines[i][index+len("MOZ_STATIC_ASSERT"):]
for j in range(i + 1, len(lines)):
if lines[j].find(" ", index) == index:
lines[j] = lines[j][0:index] + lines[j][index+4:]
else:
break
else:
break
f.seek(0, 0)
f.truncate()
f.write("".join(lines))
f.close()
argc = len(sys.argv)
for i in range(1, argc):
replaceInPlace(sys.argv[i])
--HG--
extra : rebase_source : 4b4a4047d82f2c205b9fad8d56dfc3f1afc0b045
2013-07-18 13:59:53 -04: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
Daniel Holbert
aac499cf28
Bug 581478: undef strdup before (re)defining it in mozalloc_macro_wrappers.h. r=glandium
2013-07-25 18:14:41 -07:00
Mike Shal
fb38e981d0
Bug 889787 - Define XP_LINUX globally; r=ted
2013-07-16 17:10:10 -04:00
Mike Hommey
e9ee5bb8ee
Bug 892904 - Remove useless includes of config.mk. r=gps
2013-07-15 18:48:40 +09:00
Gregory Szorc
0a41c9c2f9
Bug 891632 - Port NO_DIST_INSTALL to moz.build; r=joey
...
Many of the moved variables are likely not needed. moz.build should one
day validate the sandbox's output and error if "useless" variables are
present.
--HG--
extra : rebase_source : 3abdea056c18d00ede8c15b37db60532eca58630
2013-07-10 12:08:21 -07:00
Catalin Iacob
83b78343dc
Bug 798914 (part 5) - Use newly introduced mozilla::MallocSizeOf instead of nsMallocSizeOfFun. r=njn.
...
--HG--
extra : rebase_source : fc472490dd978d165f02f77ed37f07aed6e5bb61
2013-06-23 14:03:39 +02: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
Brian O'Keefe
ed17339221
Bug 875934 - Move LIBRARY_NAME to moz.build (batch #1 ); r=mshal
...
--HG--
extra : rebase_source : 385d3fd65475ffc18ee44ae088753649470e214b
2013-06-17 15:21:01 -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
6f32ddf61c
Bug 864774 - Part 2: Move CPPSRCS to moz.build as CPP_SOURCES; r=joey CLOSED TREE
...
From 9e0ba7f425143f545eb6c4b26a9a96b5ade4d8e9 Mon Sep 17 00:00:00 2001
2013-04-23 17:54:15 -04:00
David Zbarsky
7e26888daa
Fix b2g build, no bug
2013-05-16 18:07:12 -07:00
Bill McCloskey
6b96448f68
Bug 863116 - MOZ_ALWAYS_INLINE should not inline in debug builds (r=Waldo)
2013-04-19 10:55:34 -07:00
Mike Shal
24b4056720
Bug 846634 - Part 2: Move EXPORTS to moz.build; r=joey
2013-04-16 15:24:43 -04:00
Nicholas Nethercote
41efbb243a
Bug 848560 (part 1) - dmd::ClearReports() needs to check if DMD is running before doing anything to avoid crashing. r=jlebar.
...
--HG--
extra : rebase_source : bdd7a6d1654dfbf562bc534311869248eb3c8a4a
2013-03-25 21:03:47 -07: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
Daniel Holbert
d7c124e721
Bug 851981: Make loop iterator in mozalloc_handle_oom a size_t instead of an int, to fix build warning for signed/unsigned comparison. r=bsmedberg
2013-03-18 10:58:31 -07:00
Gregory Szorc
02d1d31696
Bug 844635 - Part 3: Remove empty Makefile.in files; r=glandium
2013-03-17 18:01:25 -07:00
Adam Roach [:abr]
69afe87e10
Bug 846368 - Add number of bytes requested to OOM last-gasp r=bsmedberg
2013-02-28 13:43:51 -06:00
Gregory Szorc
bab4f2e930
Bug 784841 - Part 18c: Convert /memory, /mfbt, /mozglue; r=ted f=Ms2ger
2013-02-25 12:47:17 -08:00
Nicholas Nethercote
3b5838dd50
Bug 841564 - DMD: Fix the second percentage in stack frame records. r=jlebar. DONTBUILD.
...
--HG--
extra : rebase_source : 079bce40754ceb975cac4b3e152b294364adcdc1
2013-02-18 17:02:13 -08:00
Rafael Ávila de Espíndola
3f94cbb547
Bug 839338 - ASan alloc/dealloc mismatch in _M_create_nodes/_M_destroy_nodes. r=waldo.
2013-02-12 08:30:16 -05:00
Nicholas Nethercote
27cca99a93
Bug 838942 - DMD: Fix assertion in the test on Windows. r=jlebar. DONTBUILD because DMD isn't built by default.
...
--HG--
extra : rebase_source : e2075b1b34bbfc7d0a3b9f45523323a7f38dcb63
2013-02-07 11:18:52 -08:00
Nicholas Nethercote
5497077f63
Bug 836054 - DMD: Handle stack entries with PC of 0x0. r=jlebar.
...
--HG--
rename : accessible/src/base/EventQueue.cpp => accessible/src/base/NotificationController.cpp
rename : accessible/src/base/EventQueue.h => accessible/src/base/NotificationController.h
rename : dom/browser-element/BrowserElementParent.jsm => dom/browser-element/BrowserElementParent.js
rename : testing/modules/AppInfo.jsm => services/healthreport/modules-testing/utils.jsm
extra : rebase_source : a9b8cc73c22c889dd3973bb411a075a7e7d1e954
2013-02-03 20:15:10 -08:00
Daniel Holbert
1f9c560792
Bug 829327: Mark mozalloc_abort() as MOZ_NORETURN (except on ARM, where we're pretty sure it breaks crash stacks). r=cjones
2013-01-11 09:29:02 -08:00
Nicholas Nethercote
ab08574824
Bug 827523 (part 3) - DMD: Add --max-frames and --max-records options. r=jlebar.
...
--HG--
extra : rebase_source : 9840bcfa2d8fc1127a6f367a94e1d8488ae41c6a
2013-01-07 18:32:38 -08:00
Nicholas Nethercote
c5929f05e0
Bug 827523 (part 2) - DMD: Swap the diff order in test mode. r=jlebar.
...
--HG--
extra : rebase_source : d8b96799e7353f9d838f31ddb4b1aaca3ab6ca9c
2013-01-07 18:01:07 -08:00
Nicholas Nethercote
75c71bf3f5
Bug 827523 (part 1) - DMD: Remove valloc() from the test. r=jlebar.
...
--HG--
extra : rebase_source : a5da90a39a14d45d4d841ec22506e66520791e96
2013-01-07 17:59:44 -08:00
Justin Lebar
8371f28da1
Bug 826515 - Occasionally GC DMD stacks. r=njn
2013-01-08 11:04:19 +01:00
Nicholas Nethercote
16e75efa9f
Bug 818793 - Add a |aMaxFrames| parameter to NS_StackWalk. r=jlebar,glandium; sr=dbaron.
2012-12-20 21:31:57 -08:00
Nicholas Nethercote
3c6f93780c
Bug 820566 - DMD: Improve testing by using a script to filter out platform-specific stuff in the output. r=jlebar.
...
--HG--
extra : rebase_source : 9afed1fade6007f76d69faa1d3bd8d95516380d5
2013-01-06 19:18:13 -08:00
Nicholas Nethercote
37183ba801
Bug 826183 - DMD: clear reportedness data before running memory reporters and dumping. r=jlebar.
...
--HG--
extra : rebase_source : 3ea1c71eacdee712b2d1739a8e25cbf854ea0424
2013-01-06 13:34:39 -08:00
Chris Jones
ed3a4953e1
Bug 824224: Make mozalloc_abort() not MOZ_NORETURN and log errors to logcat. r=glandium
2013-01-04 13:28:37 -08:00
Ehsan Akhgari
90bd4b1283
Bug 826779 - Get DMD to build on Windows; r=bbondy
2013-01-04 13:57:27 -05:00
Mike Hommey
d824ba74fd
Bug 826171 - Fix strndup in memory/build/mozmemory_wrap.c. r=jlebar
2013-01-03 16:05:20 +01:00
Trevor Saunders
6380733341
bug 822717 - remove checks for old gcc r=glandium
2012-12-18 13:22:28 -05:00
Justin Lebar
4667550ede
Bug 824395 - Report used stacks separately from unused stacks. r=njn
2012-12-23 21:48:03 -05:00
Nicholas Nethercote
31198c8eea
Bug 824340 - DMD: fix a deadlock when getting stack traces. r=jlebar.
...
--HG--
extra : rebase_source : c0bb85cddb6abed0eedd49d959001a0b95667946
2012-12-23 17:35:56 -08:00
Nicholas Nethercote
650d95bc63
Bug 824390 - DMD: Don't use PTHREAD_MUTEX_INITIALIZER for non-static mutexes. r=jlebar.
...
--HG--
extra : rebase_source : a8cdd5e3d3db05cbb78441477508c05168e67ecd
2012-12-23 17:35:23 -08:00
Nicholas Nethercote
53b2e2c546
Bug 822148 (part 9) - DMD: rename "groups" as "records". r=jlebar.
...
--HG--
extra : rebase_source : e48e309bb7efc62ef52202e50e0f662814108e54
2012-12-17 21:54:08 -08:00
Nicholas Nethercote
2f717ac5d7
Bug 822148 (part 8) - DMD: remove a friend declaration. r=jlebar.
...
--HG--
extra : rebase_source : c9c23e0bcb2d6a50085daf23d7be04614efa7ac8
2012-12-19 19:48:43 -08:00
Nicholas Nethercote
d918ebce9e
Bug 822148 (part 7) - DMD: use Percent() in a couple of appropriate places. r=jlebar.
...
--HG--
extra : rebase_source : 4f99a7aca69ccf821209169a5b91c50738de736c
2012-12-19 19:41:57 -08:00
Nicholas Nethercote
dd849c50d1
Bug 822148 (part 6) - DMD: print block counts in the summary. r=jlebar.
...
--HG--
extra : rebase_source : 84c3cff46912bc7b9fe3bb4790d2cec874ae3201
2012-12-18 19:08:07 -08:00
Nicholas Nethercote
2e279fe871
Bug 822148 (part 5) - DMD: avoid empty library names in stacks. r=jlebar.
...
--HG--
extra : rebase_source : dcf7ebcc296663221dc7f671cd151d5d1f438971
2012-12-17 21:55:12 -08:00
Nicholas Nethercote
c759e65b06
Bug 822148 (part 4) - DMD: Capitalize class Thread's method names. r=jlebar.
...
--HG--
extra : rebase_source : 6cb59d548f2e972398c6a14cdfe44d2a2d474af0
2012-12-17 19:59:29 -08:00
Nicholas Nethercote
37005fd521
Bug 822148 (part 3) - DMD: Rename |LiveBlock| as |Block|. r=jlebar.
...
--HG--
extra : rebase_source : 65ccba830ca872fd28a410122ebf65c12cbf6377
2012-12-17 19:56:51 -08:00
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